fix multi url, now max_playlist_upload_year...

This commit is contained in:
Jesse Bannon 2023-12-08 17:10:43 -08:00
parent 445a8a5e82
commit 97949b3e13

View file

@ -208,10 +208,7 @@ class TestPrebuiltTVShowPresets:
"_many_urls" if is_many_urls else "", "_many_urls" if is_many_urls else "",
) )
reformatted_subscription = Subscription.from_dict( reformatted_preset_dict = {
config=config,
preset_name=subscription_name,
preset_dict={
"preset": parent_presets + [reformatted_tv_show_structure_preset], "preset": parent_presets + [reformatted_tv_show_structure_preset],
"output_options": { "output_options": {
"migrated_download_archive_name": ".ytdl-sub-{tv_show_name_sanitized}-download-archive.json" "migrated_download_archive_name": ".ytdl-sub-{tv_show_name_sanitized}-download-archive.json"
@ -221,7 +218,12 @@ class TestPrebuiltTVShowPresets:
"tv_show_name": "Best Prebuilt TV Show by Date", "tv_show_name": "Best Prebuilt TV Show by Date",
"tv_show_directory": output_directory, "tv_show_directory": output_directory,
}, },
}, }
if is_many_urls:
reformatted_preset_dict["overrides"]["url2"] = "https://url.number.2.here"
reformatted_subscription = Subscription.from_dict(
config=config, preset_name=subscription_name, preset_dict=reformatted_preset_dict
) )
reformatted_transaction_log = reformatted_subscription.update_with_info_json(dry_run=False) reformatted_transaction_log = reformatted_subscription.update_with_info_json(dry_run=False)