diff options
author | morpheus65535 <[email protected]> | 2022-04-08 09:40:30 -0400 |
---|---|---|
committer | morpheus65535 <[email protected]> | 2022-04-08 09:40:30 -0400 |
commit | ebde572ca2cea54ea85380dc613658d6dae5ee7c (patch) | |
tree | 638e69b546b4889df5afaa5e9d41b13f8603ee7a /libs | |
parent | 4c063bc6823c254a569cbe8f77ad31118470db24 (diff) | |
download | bazarr-ebde572ca2cea54ea85380dc613658d6dae5ee7c.tar.gz bazarr-ebde572ca2cea54ea85380dc613658d6dae5ee7c.zip |
no log: some small improvements to opensubtitles.com provider
Diffstat (limited to 'libs')
-rw-r--r-- | libs/subliminal_patch/providers/opensubtitlescom.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/subliminal_patch/providers/opensubtitlescom.py b/libs/subliminal_patch/providers/opensubtitlescom.py index 2d5de6310..5eb4fe659 100644 --- a/libs/subliminal_patch/providers/opensubtitlescom.py +++ b/libs/subliminal_patch/providers/opensubtitlescom.py @@ -30,7 +30,7 @@ logger = logging.getLogger(__name__) SHOW_EXPIRATION_TIME = datetime.timedelta(weeks=1).total_seconds() TOKEN_EXPIRATION_TIME = datetime.timedelta(hours=12).total_seconds() -retry_amount = 5 +retry_amount = 3 def fix_tv_naming(title): @@ -440,6 +440,7 @@ def checked(fn, raise_api_limit=False, validate_token=False, validate_json=False status_code = None else: if status_code == 401: + time.sleep(1) if validate_token: return 401 else: |