diff --git a/src/ytdl_sub/subscriptions/subscription_ytdl_options.py b/src/ytdl_sub/subscriptions/subscription_ytdl_options.py index 93937c8f..22b83c02 100644 --- a/src/ytdl_sub/subscriptions/subscription_ytdl_options.py +++ b/src/ytdl_sub/subscriptions/subscription_ytdl_options.py @@ -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: diff --git a/tests/e2e/plugins/test_subtitles.py b/tests/e2e/plugins/test_subtitles.py index 948bc068..bea0cbe5 100644 --- a/tests/e2e/plugins/test_subtitles.py +++ b/tests/e2e/plugins/test_subtitles.py @@ -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 @@ -61,11 +62,11 @@ class TestSubtitles: @pytest.mark.parametrize("dry_run", [True, False]) def test_subtitles_embedded_and_file( - self, - music_video_config, - test_single_video_subs_embed_and_file_preset_dict, - output_directory, - dry_run, + self, + music_video_config, + test_single_video_subs_embed_and_file_preset_dict, + output_directory, + dry_run, ): subscription = Subscription.from_dict( config=music_video_config, @@ -83,4 +84,4 @@ class TestSubtitles: output_directory=output_directory, dry_run=dry_run, expected_download_summary_file_name="plugins/test_subtitles_embedded_and_file.json", - ) \ No newline at end of file + )