Skip to content

Commit

Permalink
increase qbitorrent api timeout (fixes #343)
Browse files Browse the repository at this point in the history
  • Loading branch information
bobokun committed Jun 24, 2023
1 parent f96ac27 commit b4b7575
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.0.2-develop3
4.0.2-develop4
8 changes: 7 additions & 1 deletion modules/qbittorrent.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,13 @@ def __init__(self, config, params):
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}")
Expand Down

0 comments on commit b4b7575

Please sign in to comment.