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.
Additional fields in json/template output #9695
Comments
|
Could you provide the URL of the pasted HTML? |
|
I guess |
Please follow the guide below
xinto all the boxes [ ] relevant to your issue (like that [x])Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2016.06.03. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.Before submitting an issue make sure you have:
What is the purpose of your issue?
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