fix(torrents): 修复刷新站点资源时因缺失种子链接导致的 'Failed to exists key: None' 错误

This commit is contained in:
景大侠
2026-02-12 17:11:04 +08:00
parent 17a21ed707
commit 75cb8d2a3c
2 changed files with 6 additions and 3 deletions

View File

@@ -265,6 +265,9 @@ class TorrentsChain(ChainBase):
for torrent in torrents:
if global_vars.is_system_stopped:
break
if not torrent.enclosure:
logger.warn(f"缺少种子链接,忽略处理: {torrent.title}")
continue
logger.info(f'处理资源:{torrent.title} ...')
# 识别
meta = MetaInfo(title=torrent.title, subtitle=torrent.description)