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

v2.8.9 - Video Does Not Load if 'Route images' Option is Unchecked #206

Open
appyusergh opened this issue Apr 5, 2024 · 3 comments
Open

Comments

@appyusergh
Copy link

First of all I'd like to really thank you for this great project, keeping it alive, and not removing support for older systems.

Regarding the issue described in the title, I've discovered it by chance, through carrying over my custom settings, through many versions. I've simply had kept that option 'Route images' unchecked just in case, as I don't use the Tor routing.

Until I've found the cause of the problem, I thought that just maybe my system was getting too old, and if anything in the Settings that particular option would be the last suspect on my list.

Now, possibly there might be a side effect of that option being switched on, as for the first time ever I observe a video loading time lag of about 3 seconds. It's not severe, just noticeable, I can live with it.

I think that the main issue of not loading a video might be a regression, I've found a mention of it in an old Issue #95:

" zrose584 commented on Oct 14, 2021

FWIW, I just realized that my "does not load at all" problem was/is caused by CSP restrictions which occur if one has set proxy_images=False. In that case the XHR-Requests from av-merge.js just get blocked ".

Link: #95 (comment)


My system in short: Windows 8.1 Home, Firefox 115.9.1

@user234683
Copy link
Owner

user234683 commented Apr 5, 2024

I tried it and the request gets completely blocked by CSP (open inspect element, network tab, XHR before you load the video). For your case, see if it's retrying the request after it gets blocked, since that retry functionality was added to av-merge 2 months ago here: https://github.com/user234683/youtube-local/compare/3213649..684d777

It seems it's because that setting is also controlling whether the video is routed:
https://github.com/user234683/youtube-local/blob/master/youtube/watch.py#L627

Added here:
#68
#24

@appyusergh
Copy link
Author

appyusergh commented Apr 5, 2024

Sorry, but that stuff is beyond my knowledge. I was merely quoting @zrose584 comment as an example of a similar issue. I'm just an average user.

EDIT:

After realizing you were referring to the Inspect function in Firefox, I've run some tests, as that is not completely beyond my knowledge, except that networking stuff.

So, with the 'Route images' option unchecked, I was getting three requests altogether, one ok with plyr.js as Initiator, and two blocked xhr with CSP statement in the Transferred column.

I don't know if that helps ...?

@MikuroK
Copy link

MikuroK commented May 8, 2024

thanks for posting this, i was playing with the tor feature yesterday, and when configuring it i unticked that option, then never got any video to load after that point, even when turning the tor stuff back off, trying other browsers, etc, youtube-local just stopped loading videos entirely
i ticked it after seeing this issue and everything is working again, even though the tor routing is still disabled

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants