mirror of
https://github.com/morpheus65535/bazarr
synced 2025-02-22 22:10:42 +00:00
no log: fixed missing subtitles size during custom language subtitles indexing
This commit is contained in:
parent
073f3a2cfa
commit
344543cc79
2 changed files with 4 additions and 2 deletions
|
@ -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…
Reference in a new issue