From c6efda0f75e338c72c76a26d33920267cc15a293 Mon Sep 17 00:00:00 2001 From: morpheus65535 Date: Sun, 21 Aug 2022 08:17:05 -0400 Subject: [PATCH] Fixed None type issue on the first subtitles indexation for episodes or movies. --- bazarr/subtitles/indexer/movies.py | 2 +- bazarr/subtitles/indexer/series.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bazarr/subtitles/indexer/movies.py b/bazarr/subtitles/indexer/movies.py index d83458d25..31f6529ea 100644 --- a/bazarr/subtitles/indexer/movies.py +++ b/bazarr/subtitles/indexer/movies.py @@ -77,7 +77,7 @@ def store_subtitles_movie(original_path, reversed_path, use_cache=True): if not item: previously_indexed_subtitles_to_exclude = [] else: - previously_indexed_subtitles = ast.literal_eval(item['subtitles']) + previously_indexed_subtitles = ast.literal_eval(item['subtitles']) if item['subtitles'] else [] previously_indexed_subtitles_to_exclude = [x for x in previously_indexed_subtitles if len(x) == 3 and x[1] and diff --git a/bazarr/subtitles/indexer/series.py b/bazarr/subtitles/indexer/series.py index 4ce7e2228..002d039cf 100644 --- a/bazarr/subtitles/indexer/series.py +++ b/bazarr/subtitles/indexer/series.py @@ -75,7 +75,7 @@ def store_subtitles(original_path, reversed_path, use_cache=True): if not item: previously_indexed_subtitles_to_exclude = [] else: - previously_indexed_subtitles = ast.literal_eval(item['subtitles']) + previously_indexed_subtitles = ast.literal_eval(item['subtitles']) if item['subtitles'] else [] previously_indexed_subtitles_to_exclude = [x for x in previously_indexed_subtitles if len(x) == 3 and x[1] and