News for hackers. Stuff that matters.
Re:Music Company Asks Google to Delist 'YouTube Downloader' ... by varenc on Sunday May 28, 2023 @08:10PM (#36109098)
I think it's a bit of an understatement to say that YouTube video content URLs are just obfuscated. I don't think this is referring to the youtube.com URLs of public videos, which are public so not "obfuscated", but the underlying URLs that serve the raw video data to the client. These are temporary and generated per-client.

While only paid content and some special videos use the serious DRM that requires browser extensions like WideVine, all YouTube videos require a pretty complex process to download.

Famously, yt-dlp has its own minimal JavaScript interpreter which is needed to evaluate the special per-client JS script that YouTube provides so the client can determine its actual video download URL. The end of the process does just result in figuring out an obfuscated URL but that URL is temporary and limited per-client. Here's the yt-dlp JS interpreter (though I don't know in which situations it actually needs to use it): https://github.com/ytdl-org/youtube-dl/blob/master/youtube_d...

There are no comments on this comment yet.