This commit is contained in:
jxxghp
2023-06-07 21:16:33 +08:00
parent 1c8e349bfc
commit ab86eaf59a
12 changed files with 81 additions and 11 deletions

View File

@ -40,7 +40,7 @@ class _ChainBase(AbstractSingleton, metaclass=Singleton):
else:
return result is None
logger.info(f"请求模块执行:{method} ...")
logger.debug(f"请求模块执行:{method} ...")
result = None
modules = self.modulemanager.get_modules(method)
for module in modules:

View File

@ -50,6 +50,8 @@ class DoubanSyncChain(_ChainBase):
title = result.get("title", "")[2:]
if dtype not in ["想看"]:
continue
if not result.get("link"):
continue
douban_id = result.get("link", "").split("/")[-2]
if not douban_id or douban_id in caches:
continue

View File

@ -57,6 +57,7 @@ class SearchChain(_ChainBase):
# 过滤
if torrent_mediainfo.tmdb_id == mediainfo.tmdb_id \
and torrent_mediainfo.type == mediainfo.type:
logger.info(f'{mediainfo.title} 匹配到资源:{torrent.title}')
_match_torrents.append(torrent)
else:
_match_torrents = torrents