Skip to content

Commit

Permalink
Increase default timeout
Browse files Browse the repository at this point in the history
Signed-off-by: Luigi311 <[email protected]>
  • Loading branch information
luigi311 committed Sep 25, 2023
1 parent 6ce830b commit 4862118
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ SLEEP_DURATION = "3600"
LOGFILE = "log.log"

## Timeout for requests for jellyfin
REQUEST_TIMEOUT = 10
REQUEST_TIMEOUT = 300

## Map usernames between servers in the event that they are different, order does not matter
## Comma separated for multiple options
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ SLEEP_DURATION = "3600"
LOGFILE = "log.log"

## Timeout for requests for jellyfin
REQUEST_TIMEOUT = 10
REQUEST_TIMEOUT = 300

## Map usernames between servers in the event that they are different, order does not matter
## Comma separated for multiple options
Expand Down
2 changes: 1 addition & 1 deletion src/jellyfin.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def __init__(self, baseurl, token):
self.baseurl = baseurl
self.token = token
self.timeout = aiohttp.ClientTimeout(
total = int(os.getenv("REQUEST_TIMEOUT", 30))
total = int(os.getenv("REQUEST_TIMEOUT", 300))
)

if not self.baseurl:
Expand Down

0 comments on commit 4862118

Please sign in to comment.