From a53547391d19da45d760f2eb4415e4da2b9298ac Mon Sep 17 00:00:00 2001 From: morpheus65535 <5130500+morpheus65535@users.noreply.github.com> Date: Sun, 27 Jan 2019 09:17:23 -0500 Subject: [PATCH] Clarified logging when subtitles is invalid. --- bazarr/get_subtitle.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bazarr/get_subtitle.py b/bazarr/get_subtitle.py index 9c9ba2ed4..ea79bcb58 100644 --- a/bazarr/get_subtitle.py +++ b/bazarr/get_subtitle.py @@ -405,14 +405,15 @@ def manual_download_subtitle(path, language, hi, subtitle, provider, providers_a download_subtitles([subtitle], providers={provider}, provider_configs=providers_auth, pool_class=SZAsyncProviderPool, throttle_callback=None) # fixme - logging.debug('BAZARR Subtitles file downloaded for this file:' + path) except Exception as e: logging.exception('BAZARR Error downloading subtitles for this file ' + path) return None else: if not subtitle.is_valid(): - logging.exception('BAZARR Error downloading subtitles for this file ' + path) + q4ws.append('No valid subtitles file found for this file: ' + path) + logging.exception('BAZARR No valid subtitles file found for this file: ' + path) return + logging.debug('BAZARR Subtitles file downloaded for this file:' + path) try: score = round(subtitle.score / max_score * 100, 2) saved_subtitles = save_subtitles(video.original_path, [subtitle], single=single,