Implement SponsorBlock
SponsorBlock is a system for marking sponsored sections, self promotion, interaction reminder, credits, intros, non-music sections in a music videos and various other sections. The SponsorBlock browser plugin allows the automatic skipping of these sections, if desired. Due to this being FOSS and allowing third party APIs it should be possible to integrate this system into the bot.
I'll try implementing this myself after getting used to the code.
This is a really cool idea but I'm not sure how useful it would be if most users are using Muse for music. Interested in seeing how complex the implementation is.
SponsorBlock marks non-music sections in music videos, like 0:00-1:46 on https://youtu.be/F2AitTPI5U0 Here is the API specification of SponsorBlock: https://wiki.sponsor.ajay.app/w/API_Docs I've started reading through the code a bit, shouldn't be too hard to implement some additional Configs and a SponsorBlock API-Call in the YouTube service.
This would be a really awesome thing to see so that sections of youtube music videos could be automatically skipped with some sponsor block configuration.
Really like the idea as well !
I looked into it as well, and the main implem decision is : when do we fetch the skipSegment data, and should it be blocking ? Is it better to fetch it when a song is added to the playlist ? Or when it starts playing ?
Personal opinion when the song is added, and put it in the metadata. There should be a timeout so the request to SponsorBlock doesn't block the bot. Also these requests should be parallelized
🚀 Released in Release v2.8.0.