Youtube age-restricted video with disabled embeds won't download #17353

Closed
opened 2026-02-21 08:10:45 -05:00 by deekerman · 4 comments
Owner

Originally created by @TomArrow on GitHub (Jul 8, 2019).

Checklist

  • I'm reporting a broken site support
  • I've verified that I'm running youtube-dl version 2019.07.02
  • I've checked that all provided URLs are alive and playable in a browser
  • I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • I've searched the bugtracker for similar issues including closed ones

Verbose log

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['https://www.youtube.com/watch?v=I7gtoLmHd5w', '--username', 'PRIVATE', '--password', 'PRIVATE', '-v']
[debug] Encodings: locale cp1252, fs mbcs, out cp1252, pref cp1252
[debug] youtube-dl version 2019.07.02
[debug] Python version 3.4.4 (CPython) - Windows-7-6.1.7601-SP1
[debug] exe versions: ffmpeg N-92574-g72b047a7a7, ffprobe N-92574-g72b047a7a7
[debug] Proxy map: {}
[youtube] Downloading login page
[youtube] Looking up account info
[youtube] Logging in
WARNING: Unable to log in: HTTP Error 400: Bad Request
[youtube] I7gtoLmHd5w: Downloading webpage
[youtube] I7gtoLmHd5w: Downloading embed webpage
[youtube] I7gtoLmHd5w: Refetching age-gated info webpage
ERROR: Content Warning
Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmphnjfkuku\build\youtube_dl\YoutubeDL.py", line 796, in extract_info
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmphnjfkuku\build\youtube_dl\extractor\common.py", line 530, in extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmphnjfkuku\build\youtube_dl\extractor\youtube.py", line 2097, in _real_extract
youtube_dl.utils.ExtractorError: Content Warning
--



Description

I can't download this video: https://www.youtube.com/watch?v=I7gtoLmHd5w

It's age-restricted and embeds are disabled (checked by changing URL with the /embed/ trick).

I tried both without and with the --username and --password options. I am using the most up to date version released.

Getting the error noted in verbose log.

Originally created by @TomArrow on GitHub (Jul 8, 2019). <!-- ###################################################################### WARNING! IGNORING THE FOLLOWING TEMPLATE WILL RESULT IN ISSUE CLOSED AS INCOMPLETE ###################################################################### --> ## Checklist <!-- Carefully read and work through this check list in order to prevent the most common mistakes and misuse of youtube-dl: - First of, make sure you are using the latest version of youtube-dl. Run `youtube-dl --version` and ensure your version is 2019.07.02. If it's not, see https://yt-dl.org/update on how to update. Issues with outdated version will be REJECTED. - Make sure that all provided video/audio/playlist URLs (if any) are alive and playable in a browser. - Make sure that all URLs and arguments with special characters are properly quoted or escaped as explained in http://yt-dl.org/escape. - Search the bugtracker for similar issues: http://yt-dl.org/search-issues. DO NOT post duplicates. - Finally, put x into all relevant boxes (like this [x]) --> - [x] I'm reporting a broken site support - [x] I've verified that I'm running youtube-dl version **2019.07.02** - [x] I've checked that all provided URLs are alive and playable in a browser - [x] I've checked that all URLs and arguments with special characters are properly quoted or escaped - [x] I've searched the bugtracker for similar issues including closed ones ## Verbose log <!-- Provide the complete verbose output of youtube-dl that clearly demonstrates the problem. Add the `-v` flag to your command line you run youtube-dl with (`youtube-dl -v <your command line>`), copy the WHOLE output and insert it below. It should look similar to this: [debug] System config: [] [debug] User config: [] [debug] Command-line args: [u'-v', u'http://www.youtube.com/watch?v=BaW_jenozKcj'] [debug] Encodings: locale cp1251, fs mbcs, out cp866, pref cp1251 [debug] youtube-dl version 2019.07.02 [debug] Python version 2.7.11 - Windows-2003Server-5.2.3790-SP2 [debug] exe versions: ffmpeg N-75573-g1d0487f, ffprobe N-75573-g1d0487f, rtmpdump 2.4 [debug] Proxy map: {} <more lines> --> ``` [debug] System config: [] [debug] User config: [] [debug] Custom config: [] [debug] Command-line args: ['https://www.youtube.com/watch?v=I7gtoLmHd5w', '--username', 'PRIVATE', '--password', 'PRIVATE', '-v'] [debug] Encodings: locale cp1252, fs mbcs, out cp1252, pref cp1252 [debug] youtube-dl version 2019.07.02 [debug] Python version 3.4.4 (CPython) - Windows-7-6.1.7601-SP1 [debug] exe versions: ffmpeg N-92574-g72b047a7a7, ffprobe N-92574-g72b047a7a7 [debug] Proxy map: {} [youtube] Downloading login page [youtube] Looking up account info [youtube] Logging in WARNING: Unable to log in: HTTP Error 400: Bad Request [youtube] I7gtoLmHd5w: Downloading webpage [youtube] I7gtoLmHd5w: Downloading embed webpage [youtube] I7gtoLmHd5w: Refetching age-gated info webpage ERROR: Content Warning Traceback (most recent call last): File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmphnjfkuku\build\youtube_dl\YoutubeDL.py", line 796, in extract_info File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmphnjfkuku\build\youtube_dl\extractor\common.py", line 530, in extract File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmphnjfkuku\build\youtube_dl\extractor\youtube.py", line 2097, in _real_extract youtube_dl.utils.ExtractorError: Content Warning -- ``` ## Description <!-- Provide an explanation of your issue in an arbitrary form. Provide any additional information, suggested solution and as much context and examples as possible. If work on your issue requires account credentials please provide them or explain how one can obtain them. --> I can't download this video: https://www.youtube.com/watch?v=I7gtoLmHd5w It's age-restricted and embeds are disabled (checked by changing URL with the /embed/ trick). I tried both without and with the --username and --password options. I am using the most up to date version released. Getting the error noted in verbose log.
deekerman 2026-02-21 08:10:45 -05:00
  • closed this issue
  • added the
    duplicate
    label
Author
Owner

@stickbear2015 commented on GitHub (Jul 8, 2019):

@dstftw dstftw
IF your going to close an issue, please provide context for the reason you closed it, this includes providing issue numbers to what you perceive are duplicate issues. With over 21600 issues their's a lot and people MAY NOT BE able to find the same issues that you find that you consider duplicate issues OF OPENED issues.
Thank you.

@stickbear2015 commented on GitHub (Jul 8, 2019): @dstftw dstftw IF your going to close an issue, please provide context for the reason you closed it, this includes providing issue numbers to what you perceive are duplicate issues. With over 21600 issues their's a lot and people MAY NOT BE able to find the same issues that you find that you consider duplicate issues OF OPENED issues. Thank you.
Author
Owner

@TomArrow commented on GitHub (Jul 9, 2019):

@dstftw Yeah this isn't helpful at all, can you please reference the issue that you think this is a duplicate of? I couldn't find it.

@TomArrow commented on GitHub (Jul 9, 2019): @dstftw Yeah this isn't helpful at all, can you please reference the issue that you think this is a duplicate of? I couldn't find it.
Author
Owner

@bitraid commented on GitHub (Jul 9, 2019):

I found two similar issues (#15184, #17216) on the first page of my search (took me literally no more than 15 seconds). I wonder why so many people find it so hard to discover what they are looking for. BTW have you tried --cookies ?

@bitraid commented on GitHub (Jul 9, 2019): I found two similar issues (#15184, #17216) on the first page of my search (took me literally no more than 15 seconds). I wonder why so many people find it so hard to discover what they are looking for. BTW have you tried `--cookies` ?
Author
Owner

@betathetatau commented on GitHub (Jul 9, 2019):

@TomArrow Issue #11270 appears to be the root of the username/login issue. Also @bitraid's suggestion works. Get https://addons.mozilla.org/en-US/firefox/addon/cookies-txt/ and export your current cookies with it to a cookies.txt file (FWIW: I had to restart Firefox before this addon's toolbar button would actually work). Then add "--cookies c:\your_path_here\cookies.txt" to your youtube-dl command line.

@dstftw youtube-dl can be the reason people come to Github for the first time. I wonder if to cut down on duplicates (and therefore your fatigue factor), you should change this text in your Checklist from:

[x] I've searched the bugtracker for similar issues including closed ones

to something that is more instructive for newcomers, like:

[x] I've searched the bugtracker for similar issues that are open
[x] I've searched the bugtracker for similar issues that are closed (by changed the default "is:issue is:open" text in the search field to "is:issue is:closed").
Note: some issues may remain open for years due to their evolving natures and complexities. When searching for open or closed issues, please examine all search results going back years. You can also sort your search results by "Recently updated" to find old issues that are still being worked on.

@betathetatau commented on GitHub (Jul 9, 2019): @TomArrow Issue #11270 appears to be the root of the username/login issue. Also @bitraid's suggestion works. Get https://addons.mozilla.org/en-US/firefox/addon/cookies-txt/ and export your current cookies with it to a cookies.txt file (FWIW: I had to restart Firefox before this addon's toolbar button would actually work). Then add "--cookies c:\your_path_here\cookies.txt" to your youtube-dl command line. @dstftw youtube-dl can be the reason people come to Github for the first time. I wonder if to cut down on duplicates (and therefore your fatigue factor), you should change this text in your Checklist from: [x] I've searched the bugtracker for similar issues including closed ones to something that is more instructive for newcomers, like: [x] I've searched the bugtracker for similar issues that are open [x] I've searched the bugtracker for similar issues that are closed (by changed the default "is:issue is:open" text in the search field to "is:issue is:closed"). Note: some issues may remain open for years due to their evolving natures and complexities. When searching for open or closed issues, please examine all search results going back years. You can also sort your search results by "Recently updated" to find old issues that are still being worked on.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/youtube-dl#17353
No description provided.