Fixed error when manual search return an invalid subtitles. #2102

This commit is contained in:
morpheus65535 2023-03-20 06:16:37 -04:00
parent 9bd2ab514e
commit 9fb793a488
1 changed files with 6 additions and 2 deletions

View File

@ -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