mirror of
https://github.com/morpheus65535/bazarr
synced 2024-12-26 01:27:07 +00:00
Fixed LegendasDivx throttling reset time to prevent IP from getting blocked.
This commit is contained in:
parent
afc7fd2e5b
commit
c8c815e240
1 changed files with 3 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue