mirror of https://github.com/morpheus65535/bazarr
Fix for #1032.
This commit is contained in:
parent
13238b1218
commit
37802e30cc
|
@ -10,6 +10,7 @@ from get_args import args
|
|||
from config import settings
|
||||
from event_handler import event_stream
|
||||
from subliminal_patch.exceptions import TooManyRequests, APIThrottled, ParseResponseError, IPAddressBlocked
|
||||
from subliminal.providers.opensubtitles import DownloadLimitReached
|
||||
from subliminal.exceptions import DownloadLimitExceeded, ServiceUnavailable
|
||||
from subliminal import region as subliminal_cache_region
|
||||
|
||||
|
@ -40,6 +41,7 @@ PROVIDER_THROTTLE_MAP = {
|
|||
"opensubtitles": {
|
||||
TooManyRequests: (datetime.timedelta(hours=3), "3 hours"),
|
||||
DownloadLimitExceeded: (datetime.timedelta(hours=6), "6 hours"),
|
||||
DownloadLimitReached: (datetime.timedelta(hours=6), "6 hours"),
|
||||
APIThrottled: (datetime.timedelta(seconds=15), "15 seconds"),
|
||||
},
|
||||
"addic7ed": {
|
||||
|
|
Loading…
Reference in New Issue