From 01557cbfbf2377bc331964bda788ec759ad26c6f Mon Sep 17 00:00:00 2001 From: morpheus65535 Date: Sun, 4 Dec 2022 10:24:59 -0500 Subject: [PATCH] no log: deal with emails in opensubtitles.com --- libs/subliminal_patch/providers/opensubtitlescom.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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