this post was submitted on 17 Jun 2025
10 points (100.0% liked)

privacy

4788 readers
59 users here now

Big tech and governments are monitoring and recording your eating activities. c/Privacy provides tips and tricks to protect your privacy against global surveillance.

Partners:

founded 3 years ago
MODERATORS
 

Hello,

Im not terribly adept at this, but I got yt.dlp working. There is one age gated video Ive been wanting to watch. I tried inputing the credentials for a verified youtube account, and I got an error message with

"log in with password is not supported for youtube." Then listed error 7271, could not copy chrome cookie data, which I thought was weird, because I dont have chrome and was not using it as the browser.

Am I missing something? Or is this functionality no longer available, at least for the time being?

top 4 comments
sorted by: hot top controversial new old
[–] hendrik@palaver.p3x.de 2 points 4 hours ago* (last edited 4 hours ago)

I downloaded an age-gated video yesterday and it worked. You need to use the --cookies-from-browser option or export them to a text file. And I had issues with yt-dlp finding the correct path, so I needed to manually provide it with the correct directory for my Chromium or LibreWolf. My command looks like yt-dlp --cookies-from-browser firefox:~/.librewolf/ ...

It should be able to use Edge, at least according to the documentation you should be able to pass "edge" as the browser name without and additional info and it'll try to use them, unless your cookies are encrypted or you use profiles in your browser and it's not the default one.

But there are several bugreports for similar situations:

Maybe you want to install Firefox or something that works. Or if it's just one video, drop the link here and hope someone else downloads it for you.

[–] Zachariah@lemmy.world 3 points 11 hours ago (1 children)

For ytdlp to access content that requires a login, it needs to pass a browser’s cookies to YouTube to show that is logged in.

[–] Brutticus@midwest.social 1 points 10 hours ago (1 children)

I know, Im logged into youtube on Edge and I told it to use the cookies from there.

[–] Zachariah@lemmy.world 2 points 10 hours ago

It may interpret Edge as Chrome since they’re both Chromium based.