From 09295dcd10ff3727de2546f9af27fdca66dc7baa Mon Sep 17 00:00:00 2001 From: morpheus65535 Date: Mon, 9 Oct 2023 08:33:57 -0400 Subject: [PATCH] Improved throttling duration for some common configuration or connection issues. --- bazarr/app/get_providers.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/bazarr/app/get_providers.py b/bazarr/app/get_providers.py index 7e36a3e9a..f0595f83a 100644 --- a/bazarr/app/get_providers.py +++ b/bazarr/app/get_providers.py @@ -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"), @@ -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"), + }, }