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

2 factor authentication doesn't work #32804

Open
6 tasks done
Lieta2 opened this issue Jun 3, 2024 · 1 comment
Open
6 tasks done

2 factor authentication doesn't work #32804

Lieta2 opened this issue Jun 3, 2024 · 1 comment

Comments

@Lieta2
Copy link

Lieta2 commented Jun 3, 2024

Checklist

  • I'm reporting a broken site support issue
  • I've verified that I'm running youtube-dl version 2021.12.17
  • 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 bug reports including closed ones
  • I've read bugs section in FAQ

Verbose log

youtube-dl -v -f 'bestvideo[height<=?1080]+bestaudio/best' --username "won't say" --password "won't say" -2 901316 $v
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', '-f', 'bestvideo[height<=?1080]+bestaudio/best', '--username', 'PRIVATE', '--password', 'PRIVATE', '-2', '901316', 'https://youtu.be/OvO_G5Q0aUI']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dl version 2024.05.31 [21924742f] (single file build)
[debug] ** This version was built from the latest master code at https://github.com/ytdl-org/youtube-dl.
[debug] ** For support, visit the main site.
[debug] Python 3.10.12 (CPython x86_64 64bit) - Linux-6.5.0-35-generic-x86_64-with-glibc2.35 - OpenSSL 3.0.2 15 Mar 2022 - glibc 2.35
[debug] exe versions: ffmpeg 4.4.2, ffprobe 4.4.2, rtmpdump 2.4
[debug] Proxy map: {}
[youtube] Downloading login page
[youtube] Looking up account info
WARNING: Unable to look up account info: HTTP Error 400: Bad Request
[youtube] OvO_G5Q0aUI: Downloading webpage
ERROR: Private video
Sign in if you've been granted access to this video
Traceback (most recent call last):
  File "/home/lieta/.local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 863, in wrapper
    return func(self, *args, **kwargs)
  File "/home/lieta/.local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 959, in __extract_info
    ie_result = ie.extract(url)
  File "/home/lieta/.local/bin/youtube-dl/youtube_dl/extractor/common.py", line 571, in extract
    ie_result = self._real_extract(url)
  File "/home/lieta/.local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 2219, in _real_extract
    raise ExtractorError(reason, expected=True)
youtube_dl.utils.ExtractorError: Private video
Sign in if you've been granted access to this video

Description

Downloading a private video from youtube with 2FA and code from Google Authenticator app doesn't work.

@dirkf
Copy link
Contributor

dirkf commented Jun 3, 2024

The username/password options almost never work because sites change their login systems and/or require something like a Captcha that can't be handled in the yt-dl login framework.

Try passing cookies exported from your logged-in browser session where you can access the video.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@dirkf @Lieta2 and others