Provide a description that is worded well enough to be understood
The category of the downloaded stream is archived as chapters, but only when the stream had multiple categories over its lifetime.
If the category was the same from the start to the end, the chapter information returned by Twitch will be empty.
Currently this means, that if the category didn't change in a stream, then its category is not saved.
I was thinking on how to fix this, but I'm not sure which approach would be appropriate:
chapter with a single item - it would work, but in this case Twitch does not communicate any chapters, so it needs to be obtained in an other way
categories - put the main- and subcategory here, e.g. ["Games", "League of Legends"]
alt_title with the name of the category - probably not good, because what if Twitch later starts using alternative titles
The 3rd option is probably not an option.
The first would be better because then every downloaded VOD would consistently have chapters with the appropriate category.
The second might be more appropriate, though, but a few things are not clear to me in how would they be appropriate:
what should I do if the category was changed any time? Only include what Twitch provides (usually the category that was last set, in other words the last chapter), or put all categories here from the chapter information?
If the answer is to put all categories there, how to store them if not only the subcategory (e.g. the League of Legends -> Minecraft), but the main category changed too? To this one, a few solutions I was thinking of:
["Games", "League of Legends", "Games", "Minecraft", "Creative", "Art"]
["Games/League of Legends", "Games/Minecraft", "Creative/Art"]
Something to consider: Twitch seems to handle the Creative and IRL main categories as the Game category: check the URLs of listed subcategories of them. This means that differentiating between Games, IRL and Creative subcategories might not be straightforward.
Provide verbose output that clearly demonstrates the problem
[X] Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
[X] Copy the WHOLE output (starting with [debug] Command-line config) and insert it below
Checklist
Region
No response
Example URLs
http://www.twitch.tv/riotgames/v/6528877
Provide a description that is worded well enough to be understood
The category of the downloaded stream is archived as chapters, but only when the stream had multiple categories over its lifetime. If the category was the same from the start to the end, the chapter information returned by Twitch will be empty.
Currently this means, that if the category didn't change in a stream, then its category is not saved.
I was thinking on how to fix this, but I'm not sure which approach would be appropriate:
chapter
with a single item - it would work, but in this case Twitch does not communicate any chapters, so it needs to be obtained in an other waycategories
- put the main- and subcategory here, e.g.["Games", "League of Legends"]
alt_title
with the name of the category - probably not good, because what if Twitch later starts using alternative titlesThe 3rd option is probably not an option. The first would be better because then every downloaded VOD would consistently have chapters with the appropriate category. The second might be more appropriate, though, but a few things are not clear to me in how would they be appropriate:
["Games", "League of Legends", "Games", "Minecraft", "Creative", "Art"]
["Games/League of Legends", "Games/Minecraft", "Creative/Art"]
Something to consider: Twitch seems to handle the Creative and IRL main categories as the Game category: check the URLs of listed subcategories of them. This means that differentiating between Games, IRL and Creative subcategories might not be straightforward.
Provide verbose output that clearly demonstrates the problem
yt-dlp -vU <your command line>
)[debug] Command-line config
) and insert it belowComplete Verbose Output