ytdl-org / youtube-dl

Command-line program to download videos from YouTube.com and other video sites
http://ytdl-org.github.io/youtube-dl/
The Unlicense
131.36k stars 9.95k forks source link

Download more metadata from SVT Play #18159

Open ChlorideCull opened 5 years ago

ChlorideCull commented 5 years ago

Please follow the guide below


Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2018.11.07. 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?


The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue


Description of your issue, suggested solution and other information

The extractor for SVT Play doesn't grab all metadata, most notably description, season_number, and episode_number. It's available in the root['__svtplay'] JSON object that's already grabbed by the extractor, under "videoPage" > "video", under the names description, season, and episodeNumber.

This is a relatively simple change, I'll probably fix it myself if no one else gets to it first.

Here's an episode with these properties, for convenience.

ChlorideCull commented 5 years ago

Apparently there's an API, as used by the unofficial Kodi addon, which can be used instead of scraping the site.

I'll rewrite the extractor to use the API instead of scraping the pages when I have time.