-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configuring API key for Youtube App on SmartTV #112
Comments
According the section here: The api key is used by the Chrome Cast not Youtube so you actually need a ChromeCast to use this script. |
@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." #70 (comment) 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! |
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? |
Yes, i am aware. As stated before, my Chromecast V2 works out of the box without setup of youtube API, same as yours. However, CastSponsorSkip does not auto detect my SmartTV's built-in youtube app in the same way, while it is a castable app (from smartphone/chrome browser). As i read it from Gabe's comment, the youtube API key is needed for a youtube app on a TV. But setting the API does not enable it to work for me on Hisense Vidaa OS. Maybe that only works for devices with android/google tv, like the nvidia shield he is using. For now i've found a working alternative: iSponsorblocktv, though it's python. |
Ah, I switched to iSponsorblocktv too! I was having issues with CSS not skipping or muting ads despite being detected my Chromecast. |
@Nightwalker83 @Thomahawkuru You're right that an API key is required, since Google TV devices don't directly report the video ID. What type of device are you both using? It works on my Nvidia Shield and Sony Bravia TV, but I don't have any other Google TV devices to test with. The only other thing that I can think of is maybe your devices are being filtered out? Can you run CSS with Edit: Oh, also ad skip might be finicky. Google has changed how ads are reported a couple of times, so they don't always get detected. I have YouTube Premium so I don't think about it as much. I'd be curious if you have issues with ad-skip, sponsor-skip, or both! |
I am using a Chromecast HD |
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.
The text was updated successfully, but these errors were encountered: