From 76175a889bb392d5c49174929f5a707d558d38f3 Mon Sep 17 00:00:00 2001 From: morpheus65535 Date: Thu, 20 Jun 2024 07:35:29 -0400 Subject: [PATCH] Fixed opensubtitles.com provider not being throttled properly when server returned http 500. --- custom_libs/subliminal_patch/providers/opensubtitlescom.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/custom_libs/subliminal_patch/providers/opensubtitlescom.py b/custom_libs/subliminal_patch/providers/opensubtitlescom.py index 0cf5a7c84..14289919a 100644 --- a/custom_libs/subliminal_patch/providers/opensubtitlescom.py +++ b/custom_libs/subliminal_patch/providers/opensubtitlescom.py @@ -543,10 +543,6 @@ class OpenSubtitlesComProvider(ProviderRetryMixin, Provider): elif status_code == 429: log_request_response(response) raise TooManyRequests() - elif status_code == 500: - logger.debug("Server side exception raised while downloading from opensubtitles.com website. They " - "should mitigate this soon.") - return None elif status_code == 502: # this one should deal with Bad Gateway issue on their side. raise APIThrottled()