hack to keep subtitle fixtures same
This commit is contained in:
parent
cfd61f4b71
commit
88df1c736f
1 changed files with 4 additions and 0 deletions
|
|
@ -184,6 +184,10 @@ class SubtitlesPlugin(Plugin[SubtitleOptions]):
|
|||
file_metadata: Optional[FileMetadata] = None
|
||||
langs = list(requested_subtitles.keys())
|
||||
|
||||
# HACK to maintain order of languages for fixtures
|
||||
if len(langs) == len(self.plugin_options.languages):
|
||||
langs = self.plugin_options.languages
|
||||
|
||||
if self.plugin_options.embed_subtitles:
|
||||
file_metadata = FileMetadata(f"Embedded subtitles with lang(s) {', '.join(langs)}")
|
||||
if self.plugin_options.subtitles_name:
|
||||
|
|
|
|||
Loading…
Reference in a new issue