This commit is contained in:
jxxghp
2023-06-18 15:59:38 +08:00
parent 5dd7878e1b
commit 104ae59e18
19 changed files with 425 additions and 181 deletions

View File

@ -32,7 +32,7 @@ class QbittorrentModule(_ModuleBase):
:param episodes: 需要下载的集数
:return: 种子Hash错误信息
"""
if not torrent_path.exists():
if not torrent_path or not torrent_path.exists():
return None, f"种子文件不存在:{torrent_path}"
# 生成随机Tag
tag = StringUtils.generate_random_str(10)