Closed Falenone closed 10 months ago
The API key is only required for the channels whitelist. Does anything appear when you open YouTube? How are you running the program.
Running it on ubuntu server that sits on a tiny thin client that also runs my pihole. Opening youtube on my LG webos shows... the regular youtube, it plays videos like it always does. but it doesn't skip any sponsors
I assume you're running main.py. iSponsorBlockTV should connect to the YouTube app (like a phone when you cast). Make sure you have configured it correctly. If nothing works, maybe @dmunozv04 has another suggestion.
I just realized that the last commit broke getting segments. I'll push a new commit soon and that'll fix it.
You'll have to do a git pull
after that to see the changes.
After running the main.py outside of the folder
python main.py Connected to device YouTube on TV 400, message='INVALID_REQUEST', url=URL('https://www.youtube.com/api/lounge/bc/bind?device=REMOTE_CONTROL&name=iSponsorBlockTV&app=youtube-desktop&loungeIdToken=blabla token Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/pyytlounge/wrapper.py", line 532, in _command resp.raise_for_status() File "/usr/local/lib/python3.10/dist-packages/aiohttp/client_reqrep.py", line 1011, in raise_for_status raise ClientResponseError( aiohttp.client_exceptions.ClientResponseError: 400, message='INVALID_REQUEST', url=URL('https://www.youtube.com/api/lounge/bc/bind?device=REMOTE_CONTROL&name=iSponsorBlockTV&app=youtube-desktop&loungeIdToken=blablatoken 401, message='RID_OUTSIDE_WINDOW', url=URL('https://www.youtube.com/api/lounge/bc/bind?device=REMOTE_CONTROL&name=iSponsorBlockTV&app=youtube-desktop&loungeIdToken=blabla token Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/pyytlounge/wrapper.py", line 532, in _command resp.raise_for_status() File "/usr/local/lib/python3.10/dist-packages/aiohttp/client_reqrep.py", line 1011, in raise_for_status raise ClientResponseError( aiohttp.client_exceptions.ClientResponseError: 401, message='RID_OUTSIDE_WINDOW', url=URL('https://www.youtube.com/api/lounge/bc/bind?device=REMOTE_CONTROL&name=iSponsorBlockTV&app=youtube-desktop&loungeIdToken=blabla token Connected to device YouTube on TV
Those sorts of errors seem to happen from time to time, so you can ignore them. If you now do a git pull
and run the script again, segments should be detected and skipped
Did git pull and now I don't get those errors anymore. It says playing The video identifier or whatever with 12 segments but nothing is skipped. on the tv it plays the entire video from start to finish
@Falenone I have the same problem. The videos aren't skipped on my Samsung TV (Tizen OS). I also see the "Playing xxxx with yy segments" text.
Just like yourself, I have added my TV via code (using CLI)
Update: It seems to be working however the skip feature won't work sometimes because segments were fetched a little late and video playback has moved the current time (of video) inside a "skip" section.
Related: https://github.com/ajayyy/SponsorBlock/issues/124
I guess I can say it works as expected.
Thanks devs for the amazing product!
Thanks for your nice comment!
So after running the correct py script. I think I added the correct api key? I don't know, I got some api key from Google cloud and added that. It didn't find my tv on the network for some reason so I added via the code, I saved it. Now what? Is it working, is it not? It isn't skipping any segments of known videos where it does skip them in my browser