fix download

This commit is contained in:
jxxghp
2025-08-20 23:38:51 +08:00
parent 9b78deb802
commit 3d2ff28bcd
3 changed files with 47 additions and 36 deletions

View File

@@ -202,9 +202,6 @@ class TorrentHelper(metaclass=WeakSingleton):
if not torrent_content:
return "", []
try:
if isinstance(torrent_content, bytes):
# 如果是字节流,则转换为字符串
torrent_content = torrent_content.decode('utf-8', errors='ignore')
# 解析种子内容
torrentinfo = Torrent.from_string(torrent_content)
# 获取文件清单