Skip to content

Commit

Permalink
Improved throttling duration for some common configuration or connect…
Browse files Browse the repository at this point in the history
…ion issues.
  • Loading branch information
morpheus65535 committed Oct 9, 2023
1 parent 2972c38 commit 09295dc
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion bazarr/app/get_providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ def provider_throttle_map():
DownloadLimitExceeded: (datetime.timedelta(hours=6), "6 hours"),
DownloadLimitReached: (datetime.timedelta(hours=6), "6 hours"),
APIThrottled: (datetime.timedelta(seconds=15), "15 seconds"),
ServiceUnavailable: (datetime.timedelta(hours=1), "1 hour"),
},
"opensubtitlescom": {
AuthenticationError: (datetime.timedelta(hours=12), "12 hours"),
Expand Down Expand Up @@ -108,7 +109,13 @@ def provider_throttle_map():
SearchLimitReached: (
legendasdivx_limit_reset_timedelta(),
f"{legendasdivx_limit_reset_timedelta().seconds // 3600 + 1} hours"),
}
},
"subf2m": {
ConfigurationError: (datetime.timedelta(hours=24), "24 hours"),
},
"whisperai": {
ConnectionError: (datetime.timedelta(hours=24), "24 hours"),
},
}


Expand Down

0 comments on commit 09295dc

Please sign in to comment.