This commit is contained in:
jxxghp
2025-01-15 08:14:39 +08:00
parent 84bcf15e9b
commit 22b1ebe1cf
3 changed files with 6 additions and 7 deletions
-2
View File
@@ -584,8 +584,6 @@ class SubscribeChain(ChainBase, metaclass=Singleton):
# 重新识别元数据 # 重新识别元数据
torrent_meta = MetaInfo(title=torrent_info.title, subtitle=torrent_info.description, torrent_meta = MetaInfo(title=torrent_info.title, subtitle=torrent_info.description,
custom_words=custom_words_list) custom_words=custom_words_list)
# 更新识别元数据缓存
context.meta_info = torrent_meta
# 媒体信息需要重新识别 # 媒体信息需要重新识别
torrent_mediainfo = None torrent_mediainfo = None
+3 -2
View File
@@ -9,7 +9,8 @@ from torrentool.api import Torrent
from app.core.config import settings from app.core.config import settings
from app.core.context import Context, TorrentInfo, MediaInfo from app.core.context import Context, TorrentInfo, MediaInfo
from app.core.metainfo import MetaBase, MetaInfo from app.core.meta import MetaBase
from app.core.metainfo import MetaInfo
from app.db.site_oper import SiteOper from app.db.site_oper import SiteOper
from app.db.systemconfig_oper import SystemConfigOper from app.db.systemconfig_oper import SystemConfigOper
from app.log import logger from app.log import logger
@@ -477,6 +478,6 @@ class TorrentHelper(metaclass=Singleton):
and not set(torrent_episodes).intersection(set(need_episodes)): and not set(torrent_episodes).intersection(set(need_episodes)):
# 单季集没有交集的不要 # 单季集没有交集的不要
logger.debug(f"种子 {torrent.site_name} - {torrent.title} " logger.debug(f"种子 {torrent.site_name} - {torrent.title} "
f"{torrent_episodes} 没有需要的集:{need_episodes}") f"{torrent_episodes} 没有需要的集:{need_episodes}")
return False return False
return True return True
+3 -3
View File
@@ -48,9 +48,9 @@ class TransferTask(BaseModel):
""" """
文件整理任务 文件整理任务
""" """
fileitem: Optional[FileItem] = None fileitem: FileItem
meta: Optional[MetaInfo] = None meta: Optional[Any] = None
mediainfo: Optional[MediaInfo] = None mediainfo: Optional[Any] = None
target_directory: Optional[TransferDirectoryConf] = None target_directory: Optional[TransferDirectoryConf] = None
target_storage: Optional[str] = None target_storage: Optional[str] = None
target_path: Optional[Path] = None target_path: Optional[Path] = None