Live data from Hacker News

Yt-dlp: Upcoming new requirements for YouTube downloads

github.com

81–90 of 635 posts

Re: Yt-dlp: Upcoming new requirements for YouTube downloads

#81

Earlier quoted context omitted.

If you ever wondered why the likes of Google and Cloudflare want to restrict the web to a few signed, integrity-checked browser implementations? Now you know.

At least for YouTube, viewbotting is very much a thing, which undermines trust in the platform. Even if we were to remove Google ads from the equation, there’s nothing preventing someone from crafting a channel with millions of bot-generated views and comments, in order to paid sponsor placements, etc. The reasons are similar for Cloudflare, but their stances are a bit too DRMish for my tastes. I guess someone could…

I'm sure that's a problem for Youtube. What does it have to do with me rendering Youtube videos on my own computer in the way I want?

Re: Yt-dlp: Upcoming new requirements for YouTube downloads

#82

Earlier quoted context omitted.

If you ever wondered why the likes of Google and Cloudflare want to restrict the web to a few signed, integrity-checked browser implementations? Now you know.

At least for YouTube, viewbotting is very much a thing, which undermines trust in the platform. Even if we were to remove Google ads from the equation, there’s nothing preventing someone from crafting a channel with millions of bot-generated views and comments, in order to paid sponsor placements, etc. The reasons are similar for Cloudflare, but their stances are a bit too DRMish for my tastes. I guess someone could…

> which undermines trust in the platform

What? What does this even mean? Who "trusts" youtube? It's filled with disinformation, AI slop and nonsense.

Re: Yt-dlp: Upcoming new requirements for YouTube downloads

#83

Earlier quoted context omitted.

If you ever wondered why the likes of Google and Cloudflare want to restrict the web to a few signed, integrity-checked browser implementations? Now you know.

At least for YouTube, viewbotting is very much a thing, which undermines trust in the platform. Even if we were to remove Google ads from the equation, there’s nothing preventing someone from crafting a channel with millions of bot-generated views and comments, in order to paid sponsor placements, etc. The reasons are similar for Cloudflare, but their stances are a bit too DRMish for my tastes. I guess someone could…

If any of this was done to combat viewbotting, then any disruption to token calculation would prevent views from being registered - not videos from being downloaded.

Re: Yt-dlp: Upcoming new requirements for YouTube downloads

#84
post #8
post #4

Can anyone explain specifically what the YT code does that the existing python interpreter is unusable and apparently quickjs takes 20 minutes to run it? Is it just a lot of CPU-bound code and the modern JIT runtimes are simply that much faster, or is it doing some trickery that deno optimizes well?

From https://github.com/ytdl-org/youtube-dl/issues/33186 > Currently, a new style of player JS is beginning to be sent where the challenge code is no longer modular but is hooked into other code throughout the player JS. So it's no longer a standalone script that can be interpreted but it depends on all the other code on the site? Which could still be interpreted maybe but is a lot more complex and might need DOM etc…

Sounds like a really silly way to engineer things, but then again Google has the workforce to do lots of silly things and the cash to burn, so they can afford it.

Re: Yt-dlp: Upcoming new requirements for YouTube downloads

#86

Earlier quoted context omitted.

At least for YouTube, viewbotting is very much a thing, which undermines trust in the platform. Even if we were to remove Google ads from the equation, there’s nothing preventing someone from crafting a channel with millions of bot-generated views and comments, in order to paid sponsor placements, etc. The reasons are similar for Cloudflare, but their stances are a bit too DRMish for my tastes. I guess someone could…

> which undermines trust in the platform What? What does this even mean? Who "trusts" youtube? It's filled with disinformation, AI slop and nonsense.

I provided an example is given right after that sentence. Trustworthiness of the content is an entirely separate thing.

Re: Yt-dlp: Upcoming new requirements for YouTube downloads

#87
post #9

I’m a paying YouTube premium subscriber. Last weekend, I wanted to download something so I can watch it on my way in the train. The app got stuck at “waiting for download..” on my iPad. Same on iPhone. Restart did not work. I gave up after an hour (30 mins hands on trying stuff, 30 mins waiting for it to fix itself). Downloaded the video using yt-dlp, transferred it to my USB c flash drive, and watched it from that.…

>Awaiting their “premium cannot be shared with people outside household” policy so I can finally cancel.

Then I have good news for you! https://lifehacker.com/tech/youtube-family-premium-crackdown

In fact, I've got an email from them about this already. My YT is still ad-free though, so not sure when it's going to kick in for real.

Re: Yt-dlp: Upcoming new requirements for YouTube downloads

#88

Nsig/sig - Special tokens which must be passed to API calls, generated by code in base.js (player code). This is what has broken for yt-dlp and other third party clients. Instead of extracting the code that generates those tokens (eg using regular expressions) like we used to, we now need to run the whole base.js player code to get these tokens because the code is spread out all over the player code. PoToken - Proof…

> For the web it requires that you run a snippet of javascript code (the challenge) in the browser to prove that you are not a bot. How does this prove you are not a bot. How does this code not work in a headless Chromimum if it's just client side JS?

Good question! Indeed you can run the challenge code using headless Chromium and it will function [1]. They are constantly updating the challenge however, and may add additional checks in the future. I suppose Google wants to make it more expensive overall to scrape Youtube to deter the most egregious bots.

[1] https://github.com/LuanRT/BgUtils

Re: Yt-dlp: Upcoming new requirements for YouTube downloads

#89
post #67

What I found much more annoying, and so far have not been able to work around, is that yt-dlp requires you to have a YouTube account, something that I have not had for a decade or so, and am unwilling to create again. What tool can I use to simply store what my browser receives anyway, in a single video file?

When did it start requiring one? It didn't require one the last time I used it a few months ago...

Google started using IP range blocks recently. If they decide that your IP stinks, they'll block YouTube viewing and demand that you log in.

It's inconsistent as fuck, and even TOR exit nodes still work without a log in sometimes.

Re: Yt-dlp: Upcoming new requirements for YouTube downloads

#90
post #9

I’m a paying YouTube premium subscriber. Last weekend, I wanted to download something so I can watch it on my way in the train. The app got stuck at “waiting for download..” on my iPad. Same on iPhone. Restart did not work. I gave up after an hour (30 mins hands on trying stuff, 30 mins waiting for it to fix itself). Downloaded the video using yt-dlp, transferred it to my USB c flash drive, and watched it from that.…

I am a premium subscriber so I can download via yt-dlp in peace without any errors or warnings.

We are not the same.

Post reply on HN