lint
This commit is contained in:
parent
6d7ef1b4bb
commit
1f8d247a18
2 changed files with 11 additions and 14 deletions
|
|
@ -95,11 +95,7 @@ class SubscriptionYTDLOptions:
|
|||
|
||||
if subtitle_options.embed_subtitles:
|
||||
builder.add(
|
||||
{
|
||||
"postprocessors": [
|
||||
{"key": "FFmpegEmbedSubtitle", "already_have_subtitle": True}
|
||||
]
|
||||
}
|
||||
{"postprocessors": [{"key": "FFmpegEmbedSubtitle", "already_have_subtitle": True}]}
|
||||
)
|
||||
|
||||
if subtitle_options.subtitles_name:
|
||||
|
|
|
|||
|
|
@ -24,11 +24,12 @@ def single_video_subs_embed_preset_dict(output_directory):
|
|||
"overrides": {"artist": "JMC"},
|
||||
}
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def test_single_video_subs_embed_and_file_preset_dict(single_video_subs_embed_preset_dict):
|
||||
single_video_subs_embed_preset_dict['subtitles']['subtitles_name'] = (
|
||||
"{music_video_name}.{lang}.{subtitles_ext}"
|
||||
)
|
||||
single_video_subs_embed_preset_dict["subtitles"][
|
||||
"subtitles_name"
|
||||
] = "{music_video_name}.{lang}.{subtitles_ext}"
|
||||
return single_video_subs_embed_preset_dict
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue