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

Add "description" (i.e. from YouTube) as format_id identifier for output format #22739

Closed
Gorrrg opened this issue Oct 16, 2019 · 2 comments
Closed

Comments

@Gorrrg
Copy link

@Gorrrg Gorrrg commented Oct 16, 2019

Checklist

  • I'm reporting a feature request
  • I've verified that I'm running youtube-dl version 2019.10.16
  • I've searched the bugtracker for similar feature requests including closed ones

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.

@Gorrrg Gorrrg added the request label Oct 16, 2019
@dstftw dstftw closed this Oct 17, 2019
@dstftw dstftw added the won't fix label Oct 17, 2019
@dstftw
Copy link
Collaborator

@dstftw dstftw commented Oct 17, 2019

With --get-description nothing is save on the disk in the first place.

@dstftw dstftw added the invalid label Oct 17, 2019
@Gorrrg
Copy link
Author

@Gorrrg Gorrrg commented Oct 17, 2019

duh. I meant --write-description ofc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.