ganymede icon indicating copy to clipboard operation
ganymede copied to clipboard

Game Categories List Per VoD?

Open AdamGaffney96 opened this issue 1 year ago • 3 comments

Hi there, first off I love the app, been running it for a while now and I find it so much nicer and less awful to use than Twitch's VoD player. The only thing I feel like it critically missing is a list of which games have been played in the VoD. I don't even mind about it being timestamped or anything, it's easy enough to seek through a video to find it, however when you have a large archive it would be nice to just find the VoD's with the games you are interested in at a glance.

I assume this is info that can be fetched from the Twitch API as there is already the feature to filter downloads by game when setting up a watched channel, but are there any limitations that would cause this to not be pulled through? And if not, is it already pulled through and I'm just missing it?

Thanks, Adam

AdamGaffney96 avatar Nov 23 '23 09:11 AdamGaffney96

This is possible using the GraphQL API and is already used to filter games as you said. https://github.com/Zibbp/ganymede/blob/ad5c8babc8436ee264a4ee957b401633d784fd18/internal/twitch/gql.go#L194-L202

I can have this run before the video JSON manifest is saved and include it in that. I'll probably also end up creating a database table to hold these as well so it's easier to query.

The player already supports chapters so I just need to get that information into the player which would look something like this image

Zibbp avatar Nov 23 '23 15:11 Zibbp

I wonder, would this be something only available for VoD's going forward, or would it be possible to refresh this metadata for existing VoD's (if they still exist on Twitch of course)?

AdamGaffney96 avatar Nov 23 '23 16:11 AdamGaffney96

I can create a task that will go through all vods and run a function to add this information. I can for sure add the chapters to the database and most likely to the info.json file as well.

Maybe a future version 2 of this could allow manual chapter creation via the ui.

Zibbp avatar Nov 23 '23 16:11 Zibbp