fix tr连接失败

This commit is contained in:
thsrite
2023-08-12 15:42:37 +08:00
parent ff5b420005
commit 0a84a50a19
3 changed files with 4 additions and 6 deletions

View File

@ -13,7 +13,6 @@ from app.utils.string import StringUtils
class Qbittorrent(metaclass=Singleton):
_host: str = None
_port: int = None
_username: str = None
@ -22,7 +21,7 @@ class Qbittorrent(metaclass=Singleton):
qbc: Client = None
def __init__(self):
self._host, self._port = StringUtils.get_domain_address(settings.QB_HOST)
self._host, self._port = StringUtils.get_domain_address(address=settings.QB_HOST, prefix=True)
self._username = settings.QB_USER
self._password = settings.QB_PASSWORD
if self._host and self._port and self._username and self._password: