u/Antique-Steak-4868

Can't pass cookies

Can't pass cookies

Hey, I'm putting yt-dlp on a fresh windows install but I'm having trouble passing the cookies from firefox. I used:
PS C:\Users\USERNAME> yt-dlp --cookies "C:\Users\USERNAME\cookies.txt" "https://www.youtube.com/watch?v=J8vjHOyVxUA"

[youtube] Extracting URL: https://www.youtube.com/watch?v=J8vjHOyVxUA

[youtube] J8vjHOyVxUA: Downloading webpage

[youtube] J8vjHOyVxUA: Downloading android vr player API JSON

WARNING: [youtube] No title found in player responses; falling back to title from initial data. Other metadata may also be missing

ERROR: [youtube] J8vjHOyVxUA: Sign in to confirm you’re not a bot. Use --cookies-from-browser or --cookies for the authentication. See https://github.com/yt-dlp/yt-dlp/wiki/FAQ#how-do-i-pass-cookies-to-yt-dlp for how to manually pass cookies. Also see https://github.com/yt-dlp/yt-dlp/wiki/Extractors#exporting-youtube-cookies for tips on effectively exporting YouTube cookies

Also tried this:
>!PS C:\Users\USERNAMEyt-dlp --cookies-from-browser firefox "https://www.youtube.com/watch?v=J8vjHOyVxUA"!<

>!Extracting cookies from firefox!<

>!ERROR: [Errno 13] Permission denied: 'C:\\Users\\USERNAME\\AppData\\Roaming\\Mozilla\\Firefox\\Profiles\\dr6rulxo.default-release\\cookies.sqlite'!<

>!Extracting cookies from firefox!<

>!ERROR: [Errno 13] Permission denied: 'C:\\Users\\USERNAME\\AppData\\Roaming\!<\Mozilla\\Firefox\\Profiles\\dr6rulxo.default-release\\cookies.sqlite'

I'm not sure how to give it permission to access my Firefox profile. It's running in an admin terminal. Also tried turning on sudo and using that, but no luck. Anyone have ideas on how to fix this?

u/Antique-Steak-4868 — 3 days ago