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

[youtube] Age-Gate for video - Invidious-implemented bypass required? #2923

Closed
6 tasks done
tr13dm03 opened this issue Mar 2, 2022 · 3 comments
Closed
6 tasks done
Assignees
Labels
regression Works in youtube-dl/older yt-dlp site-bug Issue with a specific website

Comments

@tr13dm03
Copy link

tr13dm03 commented Mar 2, 2022

Checklist

  • I'm reporting a bug unrelated to a specific site
  • I've verified that I'm running yt-dlp version 2022.02.04. (update instructions)
  • 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. DO NOT post duplicates
  • I've read the guidelines for opening an issue

Description

yt-dlp fails to extract the video at https://www.youtube.com/watch?v=dIZ-e4WwJ5w while Invidious manages it.

Is whatever bypass Invidious uses applicable to the yt-dlp code-base?

Verbose log

[debug] Command-line config: ['-vU', '-i', '--rm-cache-dir', 'https://www.youtube.com/watch?v=dIZ-e4WwJ5w']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, err utf-8, pref UTF-8
[debug] yt-dlp version 2022.02.04 [c1653e9ef] (source)
[debug] Lazy loading extractors is disabled
[debug] Plugins: ['SamplePluginIE', 'SamplePluginPP']
[debug] Git HEAD: 7c219ea60
[debug] Python version 3.9.2 (CPython 64bit) - Linux-5.10
[debug] exe versions: ffmpeg 4.3.3-0, ffprobe 4.3.3-0
[debug] Optional libraries: Cryptodome, sqlite
[debug] Proxy map: {}
Removing cache dir /home/user/.cache/yt-dlp ..
Latest version: 2022.02.04, Current version: 2022.02.04
yt-dlp is up to date (2022.02.04)
[debug] [youtube] Extracting URL: https://www.youtube.com/watch?v=dIZ-e4WwJ5w
[youtube] dIZ-e4WwJ5w: Downloading webpage
[youtube] dIZ-e4WwJ5w: Downloading android player API JSON
[youtube] dIZ-e4WwJ5w: Downloading android agegate player API JSON
[youtube] dIZ-e4WwJ5w: Downloading web agegate player API JSON
ERROR: [youtube] dIZ-e4WwJ5w: Sign in to confirm your age. This video may be inappropriate for some users.
  File "/home/user/yt-dlp/yt_dlp/extractor/common.py", line 616, in extract
    ie_result = self._real_extract(url)
  File "/home/user/yt-dlp/yt_dlp/extractor/youtube.py", line 3248, in _real_extract
    self.raise_no_formats(reason, expected=True)
  File "/home/user/yt-dlp/yt_dlp/extractor/common.py", line 1124, in raise_no_formats
    raise ExtractorError(msg, expected=expected, video_id=video_id)
@tr13dm03 tr13dm03 added bug Bug that is not site-specific triage Untriaged issue labels Mar 2, 2022
@pukkandan pukkandan added site-bug Issue with a specific website and removed bug Bug that is not site-specific triage Untriaged issue labels Mar 2, 2022
@pukkandan pukkandan self-assigned this Mar 2, 2022
@pukkandan
Copy link
Member

I am aware of the issue. The problem is caused by 2e4cacd

@deepesh-agarwal
Copy link

@pukkandan So reverting back the commit should solve the issue?

@pukkandan
Copy link
Member

That commit was made because some other videos like HtVdAasjOgU was failing without it. But now it is working again 🤷. So reverting it should fix the issue

@pukkandan pukkandan added the regression Works in youtube-dl/older yt-dlp label Mar 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
regression Works in youtube-dl/older yt-dlp site-bug Issue with a specific website
Projects
None yet
Development

No branches or pull requests

3 participants