This commit is contained in:
jxxghp
2023-09-28 16:23:10 +08:00
parent e6af2c0f34
commit 02111a3b9f
10 changed files with 42 additions and 6 deletions

View File

@ -56,6 +56,12 @@ class Transmission(metaclass=Singleton):
return False
return True if not self.trc else False
def reconnect(self):
"""
重连
"""
self.trc = self.__login_transmission()
def get_torrents(self, ids: Union[str, list] = None, status: Union[str, list] = None,
tags: Union[str, list] = None) -> Tuple[List[Torrent], bool]:
"""