From 80d21091f509605dfef311bdf47cb6a4c74550ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louis=20V=C3=A9zina?= <5130500+morpheus65535@users.noreply.github.com> Date: Sat, 2 Feb 2019 23:28:58 -0500 Subject: [PATCH 1/2] Fix to cath refine_video exception and log them. --- bazarr/get_subtitle.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bazarr/get_subtitle.py b/bazarr/get_subtitle.py index 7d5a53b73..c45d001c0 100644 --- a/bazarr/get_subtitle.py +++ b/bazarr/get_subtitle.py @@ -63,7 +63,11 @@ def get_video(path, title, sceneName, use_scenename, providers=None, media_type= video.used_scene_name = dont_use_actual_file video.original_name = original_name video.original_path = original_path - refine_video(video) + try: + refine_video(video) + except Exception as e: + logging.debug('BAZARR Error trying to refine this file: ' + path) + pass return video except: From 44e34a4d8cfcafdff56f9445cbc394fb90d572d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louis=20V=C3=A9zina?= <5130500+morpheus65535@users.noreply.github.com> Date: Sat, 2 Feb 2019 23:28:58 -0500 Subject: [PATCH 2/2] Fix to catch refine_video exception and log them. --- bazarr/get_subtitle.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bazarr/get_subtitle.py b/bazarr/get_subtitle.py index 7d5a53b73..c45d001c0 100644 --- a/bazarr/get_subtitle.py +++ b/bazarr/get_subtitle.py @@ -63,7 +63,11 @@ def get_video(path, title, sceneName, use_scenename, providers=None, media_type= video.used_scene_name = dont_use_actual_file video.original_name = original_name video.original_path = original_path - refine_video(video) + try: + refine_video(video) + except Exception as e: + logging.debug('BAZARR Error trying to refine this file: ' + path) + pass return video except: