Skip to content
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

Watching a Kids profile videos continuously asks to switch profiles #84

Closed
awanaut opened this issue Oct 22, 2023 · 14 comments · Fixed by FabioGNR/pyytlounge#6 or #160
Closed

Watching a Kids profile videos continuously asks to switch profiles #84

awanaut opened this issue Oct 22, 2023 · 14 comments · Fixed by FabioGNR/pyytlounge#6 or #160
Labels
bug Something isn't working

Comments

@awanaut
Copy link

awanaut commented Oct 22, 2023

Describe the bug
When watching a video using a kids profile, after some period of time causes a popup stating the video cannot be watched under a kids profile and asks to switch to another profile. When stopping the container, the issue goes away. Here is a log entry of stderr:

Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/pyytlounge/wrapper.py", line 532, in _command
resp.raise_for_status()
File "/usr/local/lib/python3.8/site-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=gsessionid=xxxxxxxxxxxxxx')

To Reproduce
Steps to reproduce the behavior:

  1. Open a "kids" profile
  2. Watch any available video
  3. Wait some period of time
  4. See description

iSponsorBlockTV server (please complete the following information):

  • OS: Docker

Apple TV (please complete the following information):

  • Device: Apple TV 4k
  • OS: tvOS 17
@awanaut awanaut added the bug Something isn't working label Oct 22, 2023
@dmunozv04
Copy link
Owner

That’s kinda weird. I’ll take a look at kids profiles and try to see what’s wrong here

@dmunozv04
Copy link
Owner

I’ve been able to replicate this issue connecting to the TV with a “real” device (a phone), so it seems like the best option would be to detect if the client name matches TVHTML5_FOR_KIDS and in that case safely disconnect so it doesn’t trigger that weird popup.
Feel free to attempt to contact YouTube about this issue, since it also affects “legitimate” devices

@dmunozv04
Copy link
Owner

I've published a new develop docker image which should fix this issue (it does for me). Please let me know if it works for you @awanaut . You can use this image by replacing ghcr.io/dmunozv04/isponsorblocktv with ghcr.io/dmunozv04/isponsorblocktv:develop on your docker run/compose

@awanaut
Copy link
Author

awanaut commented Nov 12, 2023

All seems to be working! Thanks a bunch!

@awanaut awanaut closed this as completed Nov 12, 2023
@dmunozv04
Copy link
Owner

That’s great to hear. I’ll go ahead and make a new release soon

@Clem-
Copy link

Clem- commented May 6, 2024

Hi there, I have the same issue with Youtube Kids and the develop branch isn't fixing the issue :/
Thanks !

@dmunozv04
Copy link
Owner

thanks for reporting @Clem- , it’s possible that something internal in YouTube changed since it worked last time I tested it

@dmunozv04 dmunozv04 reopened this May 6, 2024
@dmunozv04
Copy link
Owner

Could you please provide details of the TV/console device used and the iSponsorblockTV server?

@Clem-
Copy link

Clem- commented May 6, 2024

Sure, I'm on an Apple TV 4K and the server is running with docker on a Raspberry Pi 3.

@danieldabate
Copy link

danieldabate commented May 11, 2024

Same happening to me on an LG TV with WebOS

@reidab
Copy link

reidab commented May 29, 2024

The upstream fix made to pyytlounge in FabioGNR/pyytlounge#6 was released in pyytlounge 1.7.0, the workaround in this project was removed in the 2.0.5 release via f4fbbcd, but requirements.txt for this project is still locked to pyytlounge==1.6.3.

I think bumping the dependency version for pyytlounge to 1.7.0 should solve the issue.

@dmunozv04
Copy link
Owner

Whoops, that’s my bad. Thanks for catching it. I’ll get a new release published soon

@danieldabate
Copy link

Good catch! I can confirm this fixes the issue! I just tested it locally. Was going to submit a PR, but will wait for you @dmunozv04

@dmunozv04
Copy link
Owner

It looks like I had already made a commit to a different branch to update the dependency, but just forgot to merge it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants