Skip to content
Snippets Groups Projects
Commit 03e69578 authored by Pierre Ynard's avatar Pierre Ynard
Browse files

youtube.lua: descramble "n" video URL parameter by parsing javascript

User agents are apparently now expected to do this; failure to do so
results in the video file data transfer getting throttled down to rates
such as 80 kB/s, 60 kB/s or 40 kB/s, below playback rate, and usually
resulting in a video that hangs upon loading or every few seconds, and
is impossible to play. This behavior seems to have first appeared in
June, but been fully rolled out only last week.

Just like with URL signatures, we interoperate with YouTube by
fulfilling what's apparently expected from us, using the same approach
as so far: we parse the descrambling rules from the javascript code, and
apply them.

Fixes #26174
parent f3963e68
No related branches found
No related tags found
No related merge requests found
Pipeline #150344 passed with stage
in 59 minutes and 15 seconds
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment