mirror of
https://github.com/StuffAnThings/qbit_manage.git
synced 2024-11-10 17:47:13 +08:00
increase qbitorrent api timeout (fixes #343)
This commit is contained in:
parent
f96ac278d7
commit
b4b75754d5
2 changed files with 8 additions and 2 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
4.0.2-develop3
|
||||
4.0.2-develop4
|
||||
|
|
|
@ -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}")
|
||||
|
|
Loading…
Reference in a new issue