Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YT age restriction bypass broke #3182

Closed
7 tasks done
ligix opened this issue Mar 24, 2022 · 19 comments · Fixed by #3233
Closed
7 tasks done

YT age restriction bypass broke #3182

ligix opened this issue Mar 24, 2022 · 19 comments · Fixed by #3233
Labels
site:youtube site-bug Issue with a specific website

Comments

@ligix
Copy link

ligix commented Mar 24, 2022

Checklist

Region

No response

Description

Yt-dlp age restriction bypass doesn't seem to work anymore, I tested with multiple videos and they are all broken (one of the videos is playable on invidious 2022.03.15-5b82370b (https://invidious.snopyta.org)).
This might be a duplicate of #2923

https://youtube.com/watch?v=CUO8secmc0g
https://youtube.com/watch?v=dIZ-e4WwJ5w

Verbose log

[debug] Command-line config: ['-vU', 'https://youtube.com/watch?v=CUO8secmc0g']
[debug] User config "/home/doggo/.config/yt-dlp/config": ['-f', 'bestvideo[height<=1080]+bestaudio/best']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, err utf-8, pref UTF-8
[debug] yt-dlp version 2022.03.08.1 [c0c2c57d3]
[debug] Python version 3.10.2 (CPython 64bit) - Linux-5.16.15-arch1-1-x86_64-with-glibc2.35
[debug] exe versions: ffmpeg 5.0 (setts), ffprobe 5.0
[debug] Optional libraries: brotli, Crypto, 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://youtube.com/watch?v=CUO8secmc0g
[youtube] CUO8secmc0g: Downloading webpage
[youtube] CUO8secmc0g: Downloading android player API JSON
[youtube] CUO8secmc0g: Downloading android agegate player API JSON
[youtube] CUO8secmc0g: Downloading web agegate player API JSON
ERROR: [youtube] CUO8secmc0g: Sign in to confirm your age. This video may be inappropriate for some users.
  File "/usr/lib/python3.10/site-packages/yt_dlp/extractor/common.py", line 617, in extract
    ie_result = self._real_extract(url)
  File "/usr/lib/python3.10/site-packages/yt_dlp/extractor/youtube.py", line 3339, in _real_extract
    self.raise_no_formats(reason, expected=True)
  File "/usr/lib/python3.10/site-packages/yt_dlp/extractor/common.py", line 1126, in raise_no_formats
    raise ExtractorError(msg, expected=expected, video_id=video_id)
@ligix ligix added site-bug Issue with a specific website triage Untriaged issue labels Mar 24, 2022
@coletdjnz coletdjnz removed the triage Untriaged issue label Mar 24, 2022
@pukkandan
Copy link
Member

(one of the videos is playable on invidious 2022.03.15-5b82370b (invidious.snopyta.org)).

Neither of the videos you gave is working on invidious

@pukkandan pukkandan added the help-wanted Extra attention is needed label Mar 25, 2022
@NanaMizukiAnother7

This comment was marked as duplicate.

@vaaski

This comment was marked as duplicate.

@pukkandan
Copy link
Member

pukkandan commented Mar 25, 2022

Tier 1 bypass will be fixed by ae72962. Tier 2 bypass appears to have been patched. Until someone finds a new method, nothing can be done about this

Note that afaik, unverified logged-in cookies still work to bypass the ID verification requirement in EU

You might want to check out this plugin for better bypass using third party services

@nicolaasjan
Copy link

Note that afaik, unverified logged-in cookies still work to bypass the ID verification requirement in EU

Confirmed.
Here in The Netherlands the second video downloaded with --cookies-from-browser.

@rajatvermaiam
Copy link

Yes , the embed method to bypass age restricted videos are no longer working..

@Doktor-X
Copy link

I dont get why google is so determined to prevent users to see age restricted content, and constantly making changes to api

@duarm
Copy link

duarm commented Mar 28, 2022

I dont get why google is so determined to prevent users to see age restricted content, and constantly making changes to api

they most likely just want you to use your addressable cookies

@pukkandan pukkandan linked a pull request Mar 28, 2022 that will close this issue
9 tasks
@coletdjnz coletdjnz removed the help-wanted Extra attention is needed label Mar 29, 2022
pukkandan pushed a commit that referenced this issue Mar 29, 2022
Closes #3182
Authored by: zerodytrash, pukkandan
@Idesmi
Copy link

Idesmi commented Apr 18, 2022

This seems to be happening again.

@coletdjnz
Copy link
Member

This seems to be happening again.

Still seems to be working for me? not all videos will work. The second video (dIZ-e4WwJ5w) OP posted is working, the first never worked afaik.

@Idesmi
Copy link

Idesmi commented Apr 18, 2022

Still seems to be working for me? not all videos will work. The second video (dIZ-e4WwJ5w) OP posted is working, the first never worked afaik.

Unfortunately from Italy that isn't working, both passing or not cookies from browser.
I am logged in with an account but I haven't verified age with ID.

@pukkandan
Copy link
Member

Open a new issue with necessary details including a verbose log

@xznhj8129
Copy link

Broken again

@pukkandan
Copy link
Member

pukkandan commented Jun 16, 2022

@xznhj8129 tiers 1-3 are still working. tier 4 never worked without cookies (Tiers: #575 (comment))

If you are saying it is broken with logged in cookies, open a new issue with verbose log. Otherwise, the video you are checking is likely tier 4. If you have reason to think it is not, explain with verbose log

Note that afaik, unverified logged-in cookies still work to bypass the ID verification requirement in EU

You might want to check out this plugin for better bypass using third party services

@ask2018
Copy link

ask2018 commented Mar 22, 2023

It is broken again. See also this. Seems to be related, that all local bypasses stopped working after some YT change.
zerodytrash/Simple-YouTube-Age-Restriction-Bypass#183

@nicolaasjan
Copy link

It is broken again. See also this. Seems to be related, that all local bypasses stopped working after some YT change. zerodytrash/Simple-YouTube-Age-Restriction-Bypass#183

Worked here when logged in and using --cookies-from-browser.

yt-dlp -v -F --cookies-from-browser firefox --ignore-config https://www.youtube.com/watch?v=EY_9OZxqStY
[debug] Command-line config: ['-v', '-F', '--cookies-from-browser', 'firefox', '--ignore-config', 'https://www.youtube.com/watch?v=EY_9OZxqStY']
[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@2023.03.22 [c2e0fc40a] (zip)
[debug] Python 3.8.10 (CPython x86_64 64bit) - Linux-5.4.0-144-generic-x86_64-with-glibc2.29 (OpenSSL 1.1.1f  31 Mar 2020, glibc 2.31)
[debug] exe versions: ffmpeg N-109960-g3153c441e1-Nico-20230305 (fdk,setts), ffprobe N-109960-g3153c441e1-Nico-20230305, phantomjs 2.1.1, rtmpdump 2.4
[debug] Optional libraries: Cryptodome-3.17, brotli-1.0.9, certifi-2022.12.07, mutagen-1.46.0, secretstorage-3.3.3, sqlite3-2.6.0, websockets-10.4, xattr-0.9.6
[Cookies] Extracting cookies from firefox
[debug] Extracting cookies from: "/home/nico/.mozilla/firefox/t4pjf06z.tmp/cookies.sqlite"
[Cookies] Extracted 47 cookies from firefox
[debug] Proxy map: {}
[debug] Loaded 1788 extractors
[youtube] Extracting URL: https://www.youtube.com/watch?v=EY_9OZxqStY
[youtube] EY_9OZxqStY: Downloading webpage
[debug] [youtube] Extracted SAPISID cookie
[youtube] EY_9OZxqStY: Downloading android player API JSON
[debug] Sort order given by extractor: quality, res, fps, hdr:12, source, vcodec:vp9.2, channels, acodec, lang, proto
[debug] Formats sorted by: hasvid, ie_pref, quality, res, fps, hdr:12(7), source, vcodec:vp9.2(10), channels, acodec, lang, proto, filesize, fs_approx, tbr, vbr, abr, asr, vext, aext, hasaud, id
[info] Available formats for EY_9OZxqStY:
ID  EXT   RESOLUTION FPS CH │   FILESIZE   TBR PROTO │ VCODEC        VBR ACODEC      ABR ASR MORE INFO
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
sb2 mhtml 48x27        0    │                  mhtml │ images                                storyboard
sb1 mhtml 61x45        0    │                  mhtml │ images                                storyboard
sb0 mhtml 123x90       0    │                  mhtml │ images                                storyboard
599 m4a   audio only      2 │   17.28MiB   31k dash  │ audio only        mp4a.40.5   31k 22k ultralow, ANDR, m4a_dash
600 webm  audio only      2 │   17.48MiB   31k dash  │ audio only        opus        31k 48k ultralow, ANDR, webm_dash
139 m4a   audio only      2 │   27.38MiB   49k dash  │ audio only        mp4a.40.5   49k 22k low, ANDR, m4a_dash
249 webm  audio only      2 │   25.85MiB   46k dash  │ audio only        opus        46k 48k low, ANDR, webm_dash
250 webm  audio only      2 │   30.65MiB   55k dash  │ audio only        opus        55k 48k low, ANDR, webm_dash
140 m4a   audio only      2 │   72.67MiB  129k dash  │ audio only        mp4a.40.2  129k 44k medium, ANDR, m4a_dash
251 webm  audio only      2 │   55.66MiB   99k dash  │ audio only        opus        99k 48k medium, ANDR, webm_dash
17  3gp   176x144      6  1 │   43.56MiB   78k dash  │ mp4v.20.3     78k mp4a.40.2    0k 22k 144p, ANDR
597 mp4   198x144     13    │   14.49MiB   26k dash  │ avc1.4d400b   26k video only          144p, ANDR, mp4_dash
598 webm  198x144     13    │   12.20MiB   22k dash  │ vp9           22k video only          144p, ANDR, webm_dash
160 mp4   198x144     25    │   27.49MiB   49k dash  │ avc1.4d400b   49k video only          144p, ANDR, mp4_dash
278 webm  198x144     25    │   34.46MiB   61k dash  │ vp9           61k video only          144p, ANDR, webm_dash
133 mp4   328x240     25    │   55.24MiB   98k dash  │ avc1.4d400d   98k video only          240p, ANDR, mp4_dash
242 webm  328x240     25    │   56.35MiB  100k dash  │ vp9          100k video only          240p, ANDR, webm_dash
134 mp4   494x360     25    │  106.24MiB  189k dash  │ avc1.4d4015  189k video only          360p, ANDR, mp4_dash
18  mp4   494x360     25  2 │ ~182.95MiB  318k https │ avc1.42001E  318k mp4a.40.2    0k 44k 360p, ANDR
243 webm  494x360     25    │  108.63MiB  194k dash  │ vp9          194k video only          360p, ANDR, webm_dash
135 mp4   658x480     25    │  186.59MiB  332k dash  │ avc1.4d401e  332k video only          480p, ANDR, mp4_dash
244 webm  658x480     25    │  181.05MiB  323k dash  │ vp9          323k video only          480p, ANDR, webm_dash
22  mp4   986x720     25  2 │ ~426.13MiB  741k https │ avc1.64001F  741k mp4a.40.2    0k 44k 720p, ANDR
136 mp4   986x720     25    │  343.75MiB  612k dash  │ avc1.4d401f  612k video only          720p, ANDR, mp4_dash
247 webm  986x720     25    │  343.10MiB  611k dash  │ vp9          611k video only          720p, ANDR, webm_dash
137 mp4   1480x1080   25    │  992.58MiB 1768k dash  │ avc1.640028 1768k video only          1080p, ANDR, mp4_dash
248 webm  1480x1080   25    │  726.88MiB 1295k dash  │ vp9         1295k video only          1080p, ANDR, webm_dash

@ask2018
Copy link

ask2018 commented Mar 22, 2023

Yeah with login probably yes, but my point is it is not working without login as it was working before. I didn't even know about the cookies feature to be honest, but many people included me don't want to create accounts on Google services like Youtube at all. And as it was working before without the account. I'd like to see this great feature fixed.

@nicolaasjan
Copy link

There you've got a point. 🙂

--cookies-from-browser isn't even supported on Pale Moon b.t.w.

Currently supported browsers are:
brave, chrome, chromium, edge, firefox,
opera, safari, vivaldi.

@pukkandan
Copy link
Member

pukkandan commented Mar 22, 2023

@ask2018 Read the comment literally just above yours #3182 (comment) for a status of the various age-gate workarounds. The status of that comment does not appear to have changed from my testing. If one of the examples given for tiers 1-3 is broken, open a new issue with proper verbose logs

--cookies-from-browser isn't even supported on Pale Moon b.t.w.

#2903

@yt-dlp yt-dlp locked as resolved and limited conversation to collaborators Mar 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
site:youtube site-bug Issue with a specific website
Projects
None yet
Development

Successfully merging a pull request may close this issue.