diff options
author | morpheus65535 <[email protected]> | 2022-06-23 06:41:53 -0400 |
---|---|---|
committer | morpheus65535 <[email protected]> | 2022-06-23 06:41:53 -0400 |
commit | c8c815e24095b98882ac58f9961e63b38b63a20c (patch) | |
tree | 8a44b0ad75521705d346111537f659b1a842a32c | |
parent | afc7fd2e5b39a9e116f489c7209219f2ae97dd7d (diff) | |
download | bazarr-1.0.5-beta.33.tar.gz bazarr-1.0.5-beta.33.zip |
Fixed LegendasDivx throttling reset time to prevent IP from getting blocked.v1.0.5-beta.33
-rw-r--r-- | bazarr/app/get_providers.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bazarr/app/get_providers.py b/bazarr/app/get_providers.py index 53007cdf1..87737f52d 100644 --- a/bazarr/app/get_providers.py +++ b/bazarr/app/get_providers.py @@ -43,9 +43,10 @@ def titulky_limit_reset_timedelta(): return time_until_midnight(timezone=pytz.timezone('Europe/Prague')) -# LegendasDivx reset its searches limit at approximately midnight, Lisbon time, everyday. +# LegendasDivx reset its searches limit at approximately midnight, Lisbon time, every day. We wait 1 more hours just +# to be sure. def legendasdivx_limit_reset_timedelta(): - return time_until_midnight(timezone=pytz.timezone('Europe/Lisbon')) + datetime.timedelta(minutes=15) + return time_until_midnight(timezone=pytz.timezone('Europe/Lisbon')) + datetime.timedelta(minutes=60) VALID_THROTTLE_EXCEPTIONS = (TooManyRequests, DownloadLimitExceeded, ServiceUnavailable, APIThrottled, |