1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2024-12-30 19:46:25 +00:00

no log: deal with emails in opensubtitles.com

This commit is contained in:
morpheus65535 2022-12-04 10:24:59 -05:00
parent 920e799468
commit 01557cbfbf

View file

@ -443,7 +443,9 @@ def checked(fn, raise_api_limit=False, validate_token=False, validate_json=False
except Exception:
status_code = None
else:
if status_code == 401:
if status_code == 400:
raise ConfigurationError('Do not use email but username')
elif status_code == 401:
time.sleep(1)
if validate_token:
return 401