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

pull/2228/head v1.2.5-beta.11
morpheus65535 1 year ago
parent 073f3a2cfa
commit 344543cc79

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

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

Loading…
Cancel
Save