muse icon indicating copy to clipboard operation
muse copied to clipboard

Implement SponsorBlock

Open FuJa0815 opened this issue 3 years ago • 4 comments

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.

FuJa0815 avatar Oct 06 '22 13:10 FuJa0815

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.

codetheweb avatar Oct 08 '22 02:10 codetheweb

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.

FuJa0815 avatar Oct 10 '22 10:10 FuJa0815

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.

xHyperElectric avatar Feb 25 '23 20:02 xHyperElectric

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

Charlignon avatar Apr 02 '24 08:04 Charlignon

🚀 Released in Release v2.8.0.

github-actions[bot] avatar Apr 28 '24 21:04 github-actions[bot]