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

View File

@@ -584,8 +584,6 @@ class SubscribeChain(ChainBase, metaclass=Singleton):
# 重新识别元数据
torrent_meta = MetaInfo(title=torrent_info.title, subtitle=torrent_info.description,
custom_words=custom_words_list)
# 更新识别元数据缓存
context.meta_info = torrent_meta
# 媒体信息需要重新识别
torrent_mediainfo = None

View File

@@ -9,7 +9,8 @@ from torrentool.api import Torrent
from app.core.config import settings
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.systemconfig_oper import SystemConfigOper
from app.log import logger
@@ -477,6 +478,6 @@ class TorrentHelper(metaclass=Singleton):
and not set(torrent_episodes).intersection(set(need_episodes)):
# 单季集没有交集的不要
logger.debug(f"种子 {torrent.site_name} - {torrent.title} "
f"{torrent_episodes} 没有需要的集:{need_episodes}")
f"{torrent_episodes} 没有需要的集:{need_episodes}")
return False
return True

View File

@@ -48,9 +48,9 @@ class TransferTask(BaseModel):
"""
文件整理任务
"""
fileitem: Optional[FileItem] = None
meta: Optional[MetaInfo] = None
mediainfo: Optional[MediaInfo] = None
fileitem: FileItem
meta: Optional[Any] = None
mediainfo: Optional[Any] = None
target_directory: Optional[TransferDirectoryConf] = None
target_storage: Optional[str] = None
target_path: Optional[Path] = None