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
130.26k stars 9.83k forks source link

Add support for "game" & "title" to Twitch livestreams #23019

Open lextra2 opened 4 years ago

lextra2 commented 4 years ago

Checklist

Description

Having support for retrieving the game category and stream title for twitch streams would be a very nice addition.

I know #22501 asked for almost the same thing but was closed under the assumption that twitch has no support for this in their API, which is wrong.

You can find more info on their API here

tim-sorrels commented 4 years ago

Hi, I would like to take a stab at adding support for this. So, similar to #22501 ,

youtube-dl --get-filename -o "title - %(title)s, game - %(game)s" https://www.twitch.tv/DansGaming title - Dan is Batman? - Telltale's Batman, game - BATMAN - The Telltale Series

Where the title is "Dan is Batman? - Telltale's Batman" and the game is "BATMAN - The Telltale Series"

Is this the expected behavior?