fix torrent_files

This commit is contained in:
thsrite
2023-08-12 22:52:19 +08:00
parent ec48da1a1c
commit 9a874d9cf3
6 changed files with 22 additions and 7 deletions

View File

@ -1,9 +1,8 @@
import re
from msilib.schema import File
from pathlib import Path
from typing import List, Optional, Tuple, Set, Dict, Union
from qbittorrentapi import TorrentFilesList
from app.chain import ChainBase
from app.core.config import settings
from app.core.context import MediaInfo, TorrentInfo, Context
@ -626,7 +625,7 @@ class DownloadChain(ChainBase):
"""
return self.remove_torrents(hashs=[hash_str])
def get_files(self, tid: str) -> Optional[TorrentFilesList]:
def get_files(self, tid: str) -> Optional[List[File]]:
"""
获取种子文件清单
"""