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,20 +208,22 @@ 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": parent_presets + [reformatted_tv_show_structure_preset],
preset_name=subscription_name, "output_options": {
preset_dict={ "migrated_download_archive_name": ".ytdl-sub-{tv_show_name_sanitized}-download-archive.json"
"preset": parent_presets + [reformatted_tv_show_structure_preset],
"output_options": {
"migrated_download_archive_name": ".ytdl-sub-{tv_show_name_sanitized}-download-archive.json"
},
"overrides": {
"url": "https://your.name.here",
"tv_show_name": "Best Prebuilt TV Show by Date",
"tv_show_directory": output_directory,
},
}, },
"overrides": {
"url": "https://your.name.here",
"tv_show_name": "Best Prebuilt TV Show by Date",
"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)