From a365d4a92c2e71dfd8fc06e7a79e6632ea596947 Mon Sep 17 00:00:00 2001 From: morpheus65535 Date: Wed, 29 Apr 2026 08:03:09 -0400 Subject: [PATCH] Fixed ensubtitles.com `reset_token` method to correctly clear the Authorization header. --- custom_libs/subliminal_patch/providers/opensubtitlescom.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_libs/subliminal_patch/providers/opensubtitlescom.py b/custom_libs/subliminal_patch/providers/opensubtitlescom.py index 3fb344f35..57820d95e 100644 --- a/custom_libs/subliminal_patch/providers/opensubtitlescom.py +++ b/custom_libs/subliminal_patch/providers/opensubtitlescom.py @@ -494,11 +494,11 @@ class OpenSubtitlesComProvider(ProviderRetryMixin, Provider): subtitle_content = r.content subtitle.content = fix_line_ending(subtitle_content) - @staticmethod - def reset_token(): + def reset_token(self): logger.debug('Authentication failed: clearing cache and attempting to login.') region.delete("oscom_token") region.delete("oscom_server") + self.session.headers.pop('Authorization', None) return def checked(self, fn, raise_api_limit=False, validate_json=False, json_key_name=None, validate_content=False,