Skip to content
This repository has been archived by the owner on Aug 21, 2023. It is now read-only.

Channel Allowlist? #22

Open
Makeshift opened this issue Apr 10, 2022 · 2 comments
Open

Channel Allowlist? #22

Makeshift opened this issue Apr 10, 2022 · 2 comments

Comments

@Makeshift
Copy link

Makeshift commented Apr 10, 2022

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

@nichobi
Copy link
Owner

nichobi commented Apr 10, 2022

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.

@Makeshift
Copy link
Author

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.

@Makeshift Makeshift changed the title Channel Whitelist? Channel Allowlist? Apr 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants