increase qbitorrent api timeout (fixes #343)

This commit is contained in:
bobokun 2023-06-24 09:52:21 -04:00
parent f96ac278d7
commit b4b75754d5
No known key found for this signature in database
GPG key ID: B73932169607D927
2 changed files with 8 additions and 2 deletions

View file

@ -1 +1 @@
4.0.2-develop3
4.0.2-develop4

View file

@ -36,7 +36,13 @@ class Qbt:
logger.debug(f"Host: {self.host}, Username: {self.username}, Password: {self.password}")
ex = ""
try:
self.client = Client(host=self.host, username=self.username, password=self.password, VERIFY_WEBUI_CERTIFICATE=False)
self.client = Client(
host=self.host,
username=self.username,
password=self.password,
VERIFY_WEBUI_CERTIFICATE=False,
REQUESTS_ARGS={"timeout": (30, 30)},
)
self.client.auth_log_in()
self.current_version = self.client.app.version
logger.debug(f"qBittorrent: {self.current_version}")