mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-04-25 07:07:44 -04:00
no log: some small improvements to opensubtitles.com provider
This commit is contained in:
parent
4c063bc682
commit
ebde572ca2
1 changed files with 2 additions and 1 deletions
|
@ -30,7 +30,7 @@ logger = logging.getLogger(__name__)
|
||||||
SHOW_EXPIRATION_TIME = datetime.timedelta(weeks=1).total_seconds()
|
SHOW_EXPIRATION_TIME = datetime.timedelta(weeks=1).total_seconds()
|
||||||
TOKEN_EXPIRATION_TIME = datetime.timedelta(hours=12).total_seconds()
|
TOKEN_EXPIRATION_TIME = datetime.timedelta(hours=12).total_seconds()
|
||||||
|
|
||||||
retry_amount = 5
|
retry_amount = 3
|
||||||
|
|
||||||
|
|
||||||
def fix_tv_naming(title):
|
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
|
status_code = None
|
||||||
else:
|
else:
|
||||||
if status_code == 401:
|
if status_code == 401:
|
||||||
|
time.sleep(1)
|
||||||
if validate_token:
|
if validate_token:
|
||||||
return 401
|
return 401
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue