question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[YouTube] Unable to download age-restricted video

See original GitHub issue

Checklist

Region

Any region.

Description

The following age-restricted video cannot be downloaded: EuQLMXyGQOE. Cookies are provided for Firefox. I am properly logged into my YT account in Firefox and can play the video. It was working few days ago, but stopped working today.

Verbose log

[debug] Command-line config: ['-vU', '--no-cache-dir', '--ffmpeg-location', 'C:/Other/ffmpeg.exe', '--retries', 'infinite', '--fragment-retries', 'infinite', '--cookies', 'firefox', 'https://www.youtube.com/watch?v=EuQLMXyGQOE']
[debug] Encodings: locale cp65001, fs utf-8, out utf-8, err utf-8, pref cp65001
[debug] yt-dlp version 2022.03.08.1 [c0c2c57] (win_exe)
[debug] Python version 3.8.10 (CPython 64bit) - Windows-10-10.0.19043-SP0
[debug] exe versions: ffmpeg 4.4-full_build (setts), ffprobe 4.4-full_build
[debug] Optional libraries: brotli, Cryptodome, mutagen, sqlite, websockets
[debug] Proxy map: {}
Latest version: 2022.03.08.1, Current version: 2022.03.08.1
yt-dlp is up to date (2022.03.08.1)
[debug] [youtube] Extracting URL: https://www.youtube.com/watch?v=EuQLMXyGQOE
[youtube] EuQLMXyGQOE: Downloading webpage
[youtube] EuQLMXyGQOE: Downloading android player API JSON
[youtube] EuQLMXyGQOE: Downloading android agegate player API JSON
[youtube] EuQLMXyGQOE: Downloading web agegate player API JSON
ERROR: [youtube] EuQLMXyGQOE: Sign in to confirm your age. This video may be inappropriate for some users.
  File "yt_dlp\extractor\common.py", line 617, in extract
  File "yt_dlp\extractor\youtube.py", line 3339, in _real_extract
  File "yt_dlp\extractor\common.py", line 1126, in raise_no_formats

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Lesmiscorecommented, Mar 30, 2022

Ah okay, makes sense

1reaction
Lesmiscorecommented, Mar 30, 2022

You have mistaken cookies-related option. You have to use --cookies-from-browser firefox to extract cookies.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to watch/download an age-restricted video on YouTube
Go to the settings of YouTube application and turn off the age restriction option, after that you can see age restriction after videos....
Read more >
3 100% Working Ways to Download Age Restricted YouTube ...
Age -restricted YouTube Downloading Guide · Step 1. Sign in · Step 2. Copy URL · Step 3. Paste URL · Step 4....
Read more >
So there is no way to download youtube vids with age ... - Reddit
If you have an account where the age says you're older than the restriction, pass the session cookie to youtube-dl in the command....
Read more >
5 Ways to Download YouTube Age-Restricted Videos in 2022
For downloading age-restricted videos, you should toggle on the Private Mode option and then input your email and password for YouTube. Then ...
Read more >
How to Download YouTube Age Restricted Video on PC & Mac
Simple Way to Save Age Restricted Videos from YouTube · Step 1. Log in your account on Google Chrome browser · Step 2....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found