summaryrefslogtreecommitdiffhomepage
path: root/libs
diff options
context:
space:
mode:
authormorpheus65535 <[email protected]>2022-12-04 10:24:59 -0500
committermorpheus65535 <[email protected]>2022-12-04 10:24:59 -0500
commit01557cbfbf2377bc331964bda788ec759ad26c6f (patch)
tree6442e379e95edc1921e3782674a559c049385bda /libs
parent920e799468fd96d7a09c2ff2b0ef60c0be175553 (diff)
downloadbazarr-01557cbfbf2377bc331964bda788ec759ad26c6f.tar.gz
bazarr-01557cbfbf2377bc331964bda788ec759ad26c6f.zip
no log: deal with emails in opensubtitles.comv1.1.3
Diffstat (limited to 'libs')
-rw-r--r--libs/subliminal_patch/providers/opensubtitlescom.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/subliminal_patch/providers/opensubtitlescom.py b/libs/subliminal_patch/providers/opensubtitlescom.py
index c9ca5831f..ca8d90193 100644
--- a/libs/subliminal_patch/providers/opensubtitlescom.py
+++ b/libs/subliminal_patch/providers/opensubtitlescom.py
@@ -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