mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-02-21 05:17:28 +08:00
Fix for #158
This commit is contained in:
parent
1092733b5e
commit
98cf99d1d0
1 changed files with 1 additions and 0 deletions
|
@ -750,6 +750,7 @@ def save_subtitles(video, subtitles, single=False, directory=None, encoding=None
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# create subtitle path
|
# create subtitle path
|
||||||
|
subtitle_path = None
|
||||||
subtitle_path = get_subtitle_path(video.name, None if single else subtitle.language)
|
subtitle_path = get_subtitle_path(video.name, None if single else subtitle.language)
|
||||||
if directory is not None:
|
if directory is not None:
|
||||||
subtitle_path = os.path.join(directory, os.path.split(subtitle_path)[1])
|
subtitle_path = os.path.join(directory, os.path.split(subtitle_path)[1])
|
||||||
|
|
Loading…
Reference in a new issue