gabe565 / CastSponsorSkip

⏭️ Skip YouTube ads and sponsorships on all local Google Cast devices
Apache License 2.0
305 stars 6 forks source link

Configuring API key for Youtube App on SmartTV #112

Open Thomahawkuru opened 1 week ago

Thomahawkuru commented 1 week ago

Hi, First of all thanks for the great project. Been using it for a year now and works great using chromecast 2

Recently our old tv broke and we upgraded to a smart tv. It has built in Youtube which i can cast to from my phone or pc. I was wandering if CastSponsorSKip also works for these kind of devices?

I read in #70 that it should be supported, but an api key needs to be set for it to work. I'm not sure how this is done correctly. I've generated an api key for an empty project in google cloud, and configured it in the castsponsorskip.service file. CastSponsorSkip runs as a service and detects the chromecast 2, but not the Smart TV.

Any guidance is greatly appreciated. Thanks.

Nightwalker83 commented 5 days ago

According the section here: https://github.com/gabe565/CastSponsorSkip/tree/main

The api key is used by the Chrome Cast not Youtube so you actually need a ChromeCast to use this script.

Thomahawkuru commented 1 day ago

@Nightwalker83 Thanks for taking your time to reply. However, it seems you are referring to the Sponsorblock API? My question is in reference to CSS_YOUTUBE_API_KEY, referenced in a comment by @gabe565 in another issue where he states:

"Do you mean YouTube's TV streaming offering, or the YouTube app on a TV? Because it works with the latter, but you'll need to generate a YouTube API key." https://github.com/gabe565/CastSponsorSkip/issues/70#issuecomment-1970549724

Adding the Youtube API key to CastSPonsorSkip ENVs did not enable it to control the YouTube app on the smartTV for me, while Gabe is implying it should be possible. (My original chromcast device works without setting the youtube api, as expected).

If someone can confirm whether this is officially supported or unsupported, that would be great!

Nightwalker83 commented 1 day ago

You don't need the api in order to get it to work in most cases. However, I do not have a smart tv to test with only a dumb only which works well with the ChromeCast and CSS without the api key needing to be entered. I just put the api key in the file anyway just to be complete. Not sure what is different about the Chromecast 2. All I did with my Chromecast HD was plugged it into power and HDMI on the tv?