revert channel test

This commit is contained in:
Jesse Bannon 2022-10-01 21:37:52 -07:00
parent ead875de1d
commit fed25b9534

View file

@ -8,10 +8,10 @@ from ytdl_sub.subscriptions.subscription import Subscription
@pytest.fixture @pytest.fixture
def channel_preset_dict(output_directory): def channel_preset_dict(output_directory):
return { return {
"preset": [ "preset": "yt_channel_as_tv",
"jellyfin_tv_show_url", "youtube": {"channel_url": "https://youtube.com/channel/UCcRSMoQqXc_JrBZRHDFGbqA"},
"season_by_year__episode_by_month_day", # override the output directory with our fixture-generated dir
], "output_options": {"output_directory": output_directory},
# download the worst format so it is fast # download the worst format so it is fast
"ytdl_options": { "ytdl_options": {
"format": "worst[ext=mp4]", "format": "worst[ext=mp4]",
@ -19,7 +19,7 @@ def channel_preset_dict(output_directory):
"break_on_reject": False, # do not break from max views "break_on_reject": False, # do not break from max views
}, },
"subtitles": { "subtitles": {
"subtitles_name": "{episode_file_path}.{lang}.{subtitles_ext}", "subtitles_name": "{episode_name}.{lang}.{subtitles_ext}",
"allow_auto_generated_subtitles": True, "allow_auto_generated_subtitles": True,
}, },
"nfo_tags": { "nfo_tags": {
@ -33,11 +33,7 @@ def channel_preset_dict(output_directory):
"source_uploader": "{playlist_uploader}", "source_uploader": "{playlist_uploader}",
} }
}, },
"overrides": { "overrides": {"tv_show_name": "Project / Zombie"},
"url": "https://youtube.com/channel/UCcRSMoQqXc_JrBZRHDFGbqA",
"tv_show_name": "Project / Zombie",
"tv_show_directory": output_directory,
},
} }