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