This commit is contained in:
jxxghp
2023-08-13 08:42:36 +08:00
parent 51b30e8e63
commit 9c0c7e8497
7 changed files with 149 additions and 153 deletions

View File

@ -1,7 +1,8 @@
from msilib.schema import File
from pathlib import Path
from typing import Set, Tuple, Optional, Union, List
from qbittorrentapi import TorrentFilesList
from app import schemas
from app.core.config import settings
from app.core.metainfo import MetaInfo
@ -188,7 +189,7 @@ class QbittorrentModule(_ModuleBase):
"""
return self.qbittorrent.start_torrents(ids=hashs)
def torrent_files(self, tid: str) -> Optional[List[File]]:
def torrent_files(self, tid: str) -> Optional[TorrentFilesList]:
"""
获取种子文件列表
"""