From 344543cc791c5dcc47aafd6153789bf60257ec4d Mon Sep 17 00:00:00 2001 From: morpheus65535 Date: Mon, 7 Aug 2023 22:59:04 -0400 Subject: [PATCH] no log: fixed missing subtitles size during custom language subtitles indexing --- bazarr/subtitles/indexer/movies.py | 3 ++- bazarr/subtitles/indexer/series.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/bazarr/subtitles/indexer/movies.py b/bazarr/subtitles/indexer/movies.py index ce9feb5a1..4f6bbc4b0 100644 --- a/bazarr/subtitles/indexer/movies.py +++ b/bazarr/subtitles/indexer/movies.py @@ -114,7 +114,8 @@ def store_subtitles_movie(original_path, reversed_path, use_cache=True): custom = CustomLanguage.found_external(subtitle, subtitle_path) if custom is not None: - actual_subtitles.append([custom, path_mappings.path_replace_reverse_movie(subtitle_path)]) + actual_subtitles.append([custom, path_mappings.path_replace_reverse_movie(subtitle_path), + os.stat(subtitle_path).st_size]) elif str(language.basename) != 'und': if language.forced: diff --git a/bazarr/subtitles/indexer/series.py b/bazarr/subtitles/indexer/series.py index 0e1842230..f325c0d86 100644 --- a/bazarr/subtitles/indexer/series.py +++ b/bazarr/subtitles/indexer/series.py @@ -113,7 +113,8 @@ def store_subtitles(original_path, reversed_path, use_cache=True): custom = CustomLanguage.found_external(subtitle, subtitle_path) if custom is not None: - actual_subtitles.append([custom, path_mappings.path_replace_reverse(subtitle_path)]) + actual_subtitles.append([custom, path_mappings.path_replace_reverse(subtitle_path), + os.stat(subtitle_path).st_size]) elif str(language.basename) != 'und': if language.forced: