From 65cc169391ed6b43fa9c6655c31c49145919ae87 Mon Sep 17 00:00:00 2001 From: thsrite Date: Sat, 8 Jun 2024 19:56:08 +0800 Subject: [PATCH] fix --- app/chain/subscribe.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/app/chain/subscribe.py b/app/chain/subscribe.py index c827572a..149cca5e 100644 --- a/app/chain/subscribe.py +++ b/app/chain/subscribe.py @@ -655,19 +655,16 @@ class SubscribeChain(ChainBase): _cache_key = f"{torrent_info.title}_{torrent_info.description}" if _cache_key not in _recognize_cached: _recognize_cached.append(_cache_key) - logger.info( - f'{torrent_info.site_name} - {torrent_info.title} 订阅缓存为未识别状态,尝试重新识别...') + logger.info(f'{torrent_info.site_name} - {torrent_info.title} 订阅缓存为未识别状态,尝试重新识别...') # 重新识别(不使用缓存) torrent_mediainfo = self.recognize_media(meta=torrent_meta, cache=False) if not torrent_mediainfo: - logger.warn( - f'{torrent_info.site_name} - {torrent_info.title} 重新识别失败,尝试通过标题匹配...') + logger.warn(f'{torrent_info.site_name} - {torrent_info.title} 重新识别失败,尝试通过标题匹配...') if self.torrenthelper.match_torrent(mediainfo=mediainfo, torrent_meta=torrent_meta, torrent=torrent_info): # 匹配成功 - logger.info( - f'{mediainfo.title_year} 通过标题匹配到资源:{torrent_info.site_name} - {torrent_info.title}') + logger.info(f'{mediainfo.title_year} 通过标题匹配到资源:{torrent_info.site_name} - {torrent_info.title}') # 更新缓存 torrent_mediainfo = mediainfo context.media_info = mediainfo