Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Add "description" (i.e. from YouTube) as format_id identifier for output format #22739
Comments
|
With |
|
duh. I meant --write-description ofc |
Checklist
Description
When using the --get-description command line, yt-dl saves it into a file with the description file extension. Using this extension is hard coded.
But it would be handy to have the description file register "description" as a format_id identifier when it's this file's turn to be saved to the file system. So that using something like -o "%(title)s.%(format_id)s" in combination with --get-description will not result in "Funny video.313.description" but in the much more usable "Funny video.description".
Because right now, when downloading multiple formats in seperate files and using format_id as an extension, the description file will have the format id of the first audio or video file in the format list in its file name. And that can mess up things when post-processing the files with a batch/script, ie. relying on the basename to match and copy files, since the description file has a different basename than the rest of the downloaded files. Even the thumbnail will honor format_id, it won't use the format id of the first video/audio file in its name but use the actual format of the thumbnail for that, like JPG for instance.