no log: fixed missing subtitles size during custom language subtitles indexing

This commit is contained in:
morpheus65535 2023-08-07 22:59:04 -04:00
parent 073f3a2cfa
commit 344543cc79
2 changed files with 4 additions and 2 deletions

View File

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

View File

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