summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormorpheus65535 <[email protected]>2023-03-20 06:16:37 -0400
committermorpheus65535 <[email protected]>2023-03-20 06:16:37 -0400
commit9fb793a4882bbf66c09014df6c09fe4770f36c71 (patch)
tree87bbf2fe75292f4843eeb89dfd9405cc75b55b1b
parent9bd2ab514e273426a0918a2c64165f0bcf9f7be3 (diff)
downloadbazarr-9fb793a4882bbf66c09014df6c09fe4770f36c71.tar.gz
bazarr-9fb793a4882bbf66c09014df6c09fe4770f36c71.zip
Fixed error when manual search return an invalid subtitles. #2102v1.2.1-beta.8
-rw-r--r--bazarr/subtitles/manual.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/bazarr/subtitles/manual.py b/bazarr/subtitles/manual.py
index 4dcb574c5..868918889 100644
--- a/bazarr/subtitles/manual.py
+++ b/bazarr/subtitles/manual.py
@@ -83,8 +83,12 @@ def manual_search(path, profile_id, providers, sceneName, title, media_type):
can_verify_series = False
if can_verify_series and not {"series", "season", "episode"}.issubset(matches):
- logging.debug(f"BAZARR Skipping {s}, because it doesn't match our series/episode")
- continue
+ try:
+ logging.debug(f"BAZARR Skipping {s}, because it doesn't match our series/episode")
+ except TypeError:
+ logging.debug("BAZARR Ignoring invalid subtitles")
+ finally:
+ continue
initial_hi = None
initial_hi_match = False