when download limit reached, throttle wait until next day

This commit is contained in:
Bazarr 2020-05-09 23:38:08 +01:00
parent 21f80d2f76
commit 963ae3354a
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ PROVIDER_THROTTLE_MAP = {
},
"legendasdivx": {
TooManyRequests: (datetime.timedelta(hours=3), "3 hours"),
DownloadLimitExceeded: (datetime.timedelta(hours=6), "6 hours"),
DownloadLimitExceeded: (datetime.timedelta(hours=hours_until_end_of_day), "{} hours".format(str(hours_until_end_of_day))),
IPAddressBlocked: (datetime.timedelta(hours=hours_until_end_of_day), "{} hours".format(str(hours_until_end_of_day))),
}
}