Checklist
Provide a description that is worded well enough to be understood
I have updated the yt-dlp to nightly and still taking the cookies from the browser firefox does not work.
I have generated cookies.txt by doing yt-dlp --cookies cookies.txt --cookies-from-browser firefox while Firefox was on a private tab and logged into Youtube and on "https://www.youtube.com/robots.txt", and then, I immediately closed the private tab.
Then, I used the cookies downloading an youtube video, and it didn't work, saying I needed to log in and use --cookies, even if I used them.
Provide verbose output that clearly demonstrates the problem
Complete Verbose Output
yt-dlp --cookies cookies.txt -vU "https://www.youtube.com/watch?v=KbrHmRU-IfU"
[debug] Command-line config: ['--cookies', 'cookies.txt', '-vU', 'https://www.youtube.com/watch?v=KbrHmRU-IfU']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version nightly@2025.06.09.234059 from yt-dlp/yt-dlp-nightly-builds [339614a17] (pip)
[debug] Python 3.12.6 (CPython arm64 64bit) - macOS-15.5-arm64-arm-64bit (OpenSSL 3.0.14 4 Jun 2024)
[debug] exe versions: none
[debug] Optional libraries: certifi-2025.04.26, requests-2.32.4, sqlite3-3.46.0, urllib3-2.4.0
[debug] Proxy map: {}
[debug] Request Handlers: urllib, requests
[debug] Plugin directories: none
[debug] Loaded 1859 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp-nightly-builds/releases/latest
Latest version: nightly@2025.06.09.234059 from yt-dlp/yt-dlp-nightly-builds
yt-dlp is up to date (nightly@2025.06.09.234059 from yt-dlp/yt-dlp-nightly-builds)
[debug] [youtube] [pot] PO Token Providers: none
[debug] [youtube] [pot] PO Token Cache Providers: memory
[debug] [youtube] [pot] PO Token Cache Spec Providers: webpo
[youtube] Extracting URL: https://www.youtube.com/watch?v=KbrHmRU-IfU
[youtube] KbrHmRU-IfU: Downloading webpage
[youtube] KbrHmRU-IfU: Downloading tv client config
[debug] Loading youtube-sts.fc2a56a5-main from cache
[youtube] KbrHmRU-IfU: Downloading tv player API JSON
[youtube] KbrHmRU-IfU: This video is age-restricted; some formats may be missing without authentication. 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
[youtube] KbrHmRU-IfU: Downloading web embedded client config
[youtube] KbrHmRU-IfU: Downloading web embedded player API JSON
[youtube] KbrHmRU-IfU: Downloading ios player API JSON
ERROR: [youtube] KbrHmRU-IfU: Sign in to confirm your age. This video may be inappropriate for some users. 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
File "/Users/lucas/projects/stream-ocr/server_ocr/.venv/lib/python3.12/site-packages/yt_dlp/extractor/common.py", line 748, in extract
ie_result = self._real_extract(url)
^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/lucas/projects/stream-ocr/server_ocr/.venv/lib/python3.12/site-packages/yt_dlp/extractor/youtube/_video.py", line 3824, in _real_extract
self.raise_no_formats(reason, expected=True)
File "/Users/lucas/projects/stream-ocr/server_ocr/.venv/lib/python3.12/site-packages/yt_dlp/extractor/common.py", line 1269, in raise_no_formats
raise ExtractorError(msg, expected=expected, video_id=video_id)
Checklist
Provide a description that is worded well enough to be understood
I have updated the yt-dlp to nightly and still taking the cookies from the browser firefox does not work.
I have generated cookies.txt by doing
yt-dlp --cookies cookies.txt --cookies-from-browser firefoxwhile Firefox was on a private tab and logged into Youtube and on "https://www.youtube.com/robots.txt", and then, I immediately closed the private tab.Then, I used the cookies downloading an youtube video, and it didn't work, saying I needed to log in and use --cookies, even if I used them.
Provide verbose output that clearly demonstrates the problem
yt-dlp -vU <your command line>)'verbose': TruetoYoutubeDLparams instead[debug] Command-line config) and insert it belowComplete Verbose Output