Skip to content

Commit

Permalink
Fixed LegendasDivx throttling reset time to prevent IP from getting b…
Browse files Browse the repository at this point in the history
…locked.
  • Loading branch information
morpheus65535 committed Jun 23, 2022
1 parent afc7fd2 commit c8c815e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bazarr/app/get_providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c8c815e

Please sign in to comment.