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

Would like a command line option to print date strings #16515

Closed
NinKenDo64 opened this issue May 21, 2018 · 3 comments
Closed

Would like a command line option to print date strings #16515

NinKenDo64 opened this issue May 21, 2018 · 3 comments

Comments

@NinKenDo64
Copy link

@NinKenDo64 NinKenDo64 commented May 21, 2018

Before submitting an issue make sure you have:

  • At least skimmed through the README, most notably the FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones
  • [n/a] Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

I'd like this for a project I'm doing to better facilitate using org-mode to catalogue YouTube channels using a combination of org-feed and youtube-dl.

I would like to see support for printing date string like pub and upload dates like the options -g and -e. The values are available in JSON and clearly available to the client as I can pass them to the output template. I'd love to have simple native support for just getting the simple date strings out on the cmd. Even better would be an option that could be passed any of the field names and print them, but dates are the main missing feature for me anyway.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented May 21, 2018

No such duplicating functionality will be added. Parse JSON.

@dstftw dstftw closed this May 21, 2018
@NinKenDo64
Copy link
Author

@NinKenDo64 NinKenDo64 commented May 21, 2018

I can see the project is very busy, but is this anymore a duplicate functionality than printing the title? Why don't I have to parse JSON for an output template? Why have such a disconnect between what's printable and what's available for formatting filename output?

@dstftw
Copy link
Collaborator

@dstftw dstftw commented May 21, 2018

--get-title was introduces long before --dump-json existed. Output template has completely nothing to do with JSON parsing, both are different options with different purpose: the former for consuming data, the latter for managing how files are written on disk.
There are more than 70 meta fields available and it's just pointless to have such amount of redundant options littering --help just because someone is comfortable with them and doesn't want to bother with JSON. Needless to say such printing options are non deterministic since you technically can't figure out where the one ends and the following starts in case of multiline meta field values.
So I'll strongly discourage adding new printing options as well as using them. JSON is clear deterministic way of consuming data that does not have aforementioned flaws.

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.