nichobi/sponsorblockcast

Channel Allowlist?

Opened this issue · 2 comments

Would it be possible to add a allowlist to certain channels? For example, I'd love to add Internet Comment Etiquette's promo pieces to an "allow ads from" list as they're generally hilarious.

I may look into PRing this myself, as it looks like the video_artist var is available and it should be fairly trivial to check this against a list.

Cheers

On my end, with a 2nd Gen Chromecast, the output of go-chromecast watch seems to have the artist field blank, ie:

>> YouTube (PLAYING), id="Vwj1fSs2mbU", title="David Lynch's Weather Report 4/9/22", artist="", time remaining=25.03s/110.00s, volume=1.00, muted=false

So I would have a hard time working on this myself. I'd be happy to accept a pull request though!

Ideally, we'd have an SBCALLOWEDCHANNELS (I'd prefer to avoid whitelist, due to racial connotations) variable which could be grepped over or similar. If you decide to implement it, I'd be happy to help however I can.

Ah, interesting! I hadn't yet looked at the actual output of go-chromecast so wasn't sure. I was just working on a project to unpause/pause chromecasts that had been paused for more than 4 minutes to avoid the timeout-back-to-ambient when YouTube had been paused for too long. Once I've got that going I'll be happy to give this a shot!

Cheers.