This commit is contained in:
jxxghp 2023-09-04 20:13:16 +08:00
parent b7d2168f8e
commit 712af24a72

View File

@ -137,7 +137,9 @@ class TorrentHelper:
try: try:
torrentinfo = Torrent.from_file(torrent_path) torrentinfo = Torrent.from_file(torrent_path)
# 获取文件清单 # 获取文件清单
if not torrentinfo.files: if (not torrentinfo.files
or (len(torrentinfo.files) == 1
and torrentinfo.files[0].name == torrentinfo.name)):
# 单文件种子目录名返回空 # 单文件种子目录名返回空
folder_name = "" folder_name = ""
# 单文件种子 # 单文件种子