Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to Add Multiple Custom Output Templates for Different Video Types #1873

Open
4 of 6 tasks
UMA1R-01 opened this issue Nov 18, 2024 · 2 comments
Open
4 of 6 tasks
Labels
enhancement New feature or request new issue This issue is not triaged

Comments

@UMA1R-01
Copy link

Checklist

  • This feature I'm requesting is already implemented in yt-dlp.
  • This feature is merely a UI/UX update.
  • This feature is suitable for primary users with little knowledge about yt-dlp.
  • This feature is available for most websites, not only the video platform I use.
  • This feature is suitable for a large variety of videos.
  • This feature is not going to conflict with many of the existing options.

Is your feature request related to a problem? Please describe.

Currently, I need to manually copy-paste the output template code each time I want to switch between downloading a playlist and a single video. For instance, when downloading from a playlist, I use an output template that includes playlist indexing, which is %(playlist_index)s. %(title).200B (%(height)sp).%(ext)s, but for single video downloads, I do not need the playlist index, for those I use %(title).200B (%(height)sp).%(ext)s.

It would be much easier to have different output templates ready for selection, so I don’t have to manually adjust the template each time.

Describe the solution you'd like

I would like the option to save and choose between multiple custom output templates within Seal.
This would allow me to easily switch between different templates based on the type of content I am downloading (e.g., one template for playlist videos with indexing, and another template for single videos without indexing). Having preset templates to choose from would streamline the process and save time when switching between different types of downloads.

Video link

This feature request is applicable to all types of video downloads, especially when switching between YouTube playlist and single video downloads.

Additional context

Currently, managing templates manually for different types of downloads is cumbersome. Adding multiple template options would improve user experience and efficiency when downloading videos with varying needs.

@UMA1R-01 UMA1R-01 added enhancement New feature or request new issue This issue is not triaged labels Nov 18, 2024
@hseg
Copy link

hseg commented Nov 19, 2024

Note that for this case specifically, you could use yt-dlp's replacement feature and just use %(playlist_index&{}. )s%(title).200B (%(height)sp).%(ext)s instead.

My own usecase uses %(upload_date>%Y-%m-%d)s instead of the playlist index when individual videos are downloaded. I haven't yet managed to merge the two into a single output template, so I'll deal with the redundancy of always having the date for now. UPDATE: I have partially succeeded here: %(playlist_title,upload_date>%Y-%m-%d&{} - |)s%(playlist_index&{} - |)s does what I want, at the cost of not being able to just use /@user/videos and Seal's video selection dialog -- yt-dlp's youtube:tab extractor presents tabs as URLs, so this will always use the playlist branch here. But that's a yt-dlp issue: yt-dlp/yt-dlp#11583.

@hseg
Copy link

hseg commented Nov 19, 2024

Though for some reason Seal is stripping some of the formatting from the output template I gave it:
%(uploader)s - %(playlist_title,upload_date>%Y-%m-%d&{} - |)s%(playlist_index&{} - |)s%(title).200B [%(id)s].%(ext)s
on https://www.youtube.com/playlist?list=PLTZM4MrZKfW9kFDPcNmKgcjryMW8WqwPJ yields

Practical_Engineering - Corrosion1You_Spend_More_on_Rust_Than_Gasoline_Probably [2RbiCOFffRs].mkv
Practical_Engineering - Corrosion2What_s_the_Difference_Between_Paint_and_Coatings [M7-7EO3odMg].mkv
Practical_Engineering - Corrosion3Why_Spillway_Gates_Don_t_Rust_Out [qFXWjv65JWg].mkv

rather than the expected

Practical Engineering - Corrosion - 1 - You Spend More on Rust Than Gasoline (Probably) [2RbiCOFffRs].mp4
Practical Engineering - Corrosion - 2 - What's the Difference Between Paint and Coatings? [M7-7EO3odMg].mp4
Practical Engineering - Corrosion - 3 - Why Spillway Gates Don't Rust Out [qFXWjv65JWg].mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request new issue This issue is not triaged
Projects
None yet
Development

No branches or pull requests

2 participants