fix bugs
This commit is contained in:
@ -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:
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user