Commits on Source (8)
-
Pierre Ynard authoredb2c32b5e
-
Pierre Ynard authored
After tightening access restrictions to it, the get_video_info YouTube API was completely retired around July 2021, with an HTTP 410 Gone code. All this fallback achieves anymore is poor UX.
c7b4efcf -
Pierre Ynard authored
Javascript variables can contain other, special characters, also %a depends on the locale.
a1786912 -
Pierre Ynard authored8473b3bf
-
Pierre Ynard authored
Use a more specific name as this isn't the only parameter anymore that we'll be descrambling by parsing and emulating javascript.
095f0930 -
Pierre Ynard authored
We'll be descrambling the "n" parameter in addition to the URL signature using this same javascript web asset, so we want to be able to share and reuse it.
4cfa8b65 -
Pierre Ynard authored
This should help against transient errors, and parsing of the javascript URL isn't the part that's most likely to break.
f3963e68 -
Pierre Ynard authored
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
03e69578