From fc00566469f7f28d7e99da90d4929b52aeb45374 Mon Sep 17 00:00:00 2001 From: panni Date: Fri, 12 May 2017 01:20:43 +0200 Subject: [PATCH] also discard provider --- .../Libraries/Shared/subliminal_patch/patch_provider_pool.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Contents/Libraries/Shared/subliminal_patch/patch_provider_pool.py b/Contents/Libraries/Shared/subliminal_patch/patch_provider_pool.py index d47ff2001..09a0e1f03 100644 --- a/Contents/Libraries/Shared/subliminal_patch/patch_provider_pool.py +++ b/Contents/Libraries/Shared/subliminal_patch/patch_provider_pool.py @@ -218,9 +218,10 @@ def download_subtitle(self, subtitle): requests.exceptions.SSLError, requests.Timeout, socket.timeout): - logger.error('Provider %r timed out', subtitle.provider_name) + logger.error('Provider %r connection error', subtitle.provider_name) except: logger.exception('Unexpected error in provider %r, Traceback: %s', subtitle.provider_name, traceback.format_exc()) + self.discarded_providers.add(subtitle.provider_name) return False if tries == DOWNLOAD_TRIES: