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

Additional fields in json/template output #9695

Closed
blha303 opened this issue Jun 4, 2016 · 3 comments
Closed

Additional fields in json/template output #9695

blha303 opened this issue Jun 4, 2016 · 3 comments
Labels

Comments

@blha303
Copy link

@blha303 blha303 commented Jun 4, 2016

Please follow the guide below

  • You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
  • Put an x into all the boxes [ ] relevant to your issue (like that [x])
  • Use Preview tab to see how your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2016.06.03. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.

  • I've verified and I assure that I'm running youtube-dl 2016.06.03

Before submitting an issue make sure you have:

  • At least skimmed through README and most notably FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones

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

Is it possible to get more fields in the json output (and -o template) for whether something is Youtube Red and season/episode number if applicable? I've copied the header html from a Youtube Red video that includes both of those things, I would write a PR but I'm not sure how I would go about adding this functionality. The specific classes are: "yt-badge standalone-collection-red-badge-renderer-icon" for whether a video is Youtube Red, and "standalone-collection-badge-renderer-text" which contains the text "S1 • E1". Thank you.

https://gist.github.com/blha303/0b279649bcafc374a4d06b492a1cd912

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Jun 5, 2016

Could you provide the URL of the pasted HTML?

@yan12125 yan12125 added the request label Jun 5, 2016
@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Jun 5, 2016

I guess 'vip_only' is a good name to indicate this video is available to YouTube Red subscribers.

@dstftw dstftw closed this in 12afdc2 Jan 21, 2017
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.