Open cameronetchart opened 7 years ago
u downloadin kedi? i downloaded that yesterday no prob.
i don't know how to RESOLVE your issue, but as a WORKAROUND, you can use the --cookie
option. get cookies.txt extension for chrome or firefox and then export your cookies and use with youtube-dl.
@QWp6t Thanks for the suggestion, appreciate it. Using --cookies as a workaround worked perfectly. I'm still not sure why the TFA prompt is failing, so I'll leave this up, but using the workaround is actually preferable to me.
I also got this same error:
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['https://www.youtube.com/watch?v=efBgXjbd2uQ', '-u', 'PRIVATE', '-p', 'PRIVATE', '-2', '845517', '-f', '135+140', '-v']
[debug] Encodings: locale cp1252, fs mbcs, out cp1252, pref cp1252
[debug] youtube-dl version 2017.05.14
[debug] Python version 3.4.4 - Windows-10-10.0.15063
[debug] exe versions: ffmpeg N-84679-gd65b595, ffprobe N-84679-gd65b595
[debug] Proxy map: {}
[youtube] Downloading login page
[youtube] Looking up account info
[youtube] Logging in
[youtube] Submitting TFA code
WARNING: Unable to submit TFA code: HTTP Error 500: Internal Server Error
WARNING: Unable to extract CheckCookie URL
[youtube] efBgXjbd2uQ: Downloading webpage
[youtube] mKScYV9jzG0: Downloading webpage
[youtube] mKScYV9jzG0: Downloading video info webpage
[youtube] mKScYV9jzG0: Extracting video information
WARNING: Unknown codec dtseWARNING: Unknown codec eac3[youtube] mKScYV9jzG0: Downloading MPD manifest
[download] Captain America - Civil War - Trailer-mKScYV9jzG0.mp4 has already been downloaded and merged
I also experiment this issue when downloading a private Youtube playlist (youtube-dl version 2017.05.14 on Arch Linux x86-64):
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['https://www.youtube.com/playlist?list=PL0plX2SYAzLRiFR0K7iNf0RMZnUtz8JhW', '--username', 'PRIVATE', '--password', 'PRIVATE', '--get-id', '--get-title', '-v']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.05.14
[debug] Python version 3.6.1 - Linux-4.10.13-1-selinux-x86_64-with-arch
[debug] exe versions: ffmpeg 3.3, ffprobe 3.3, rtmpdump 2.4
[debug] Proxy map: {}
Type 2-step verification code and press [Return]:
WARNING: Unable to submit TFA code: HTTP Error 500: Internal Server Error
WARNING: Unable to extract CheckCookie URL
ERROR: This playlist is private, use --username or --netrc to access it.
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/youtube_dl/YoutubeDL.py", line 760, in extract_info
ie_result = ie.extract(url)
File "/usr/lib/python3.6/site-packages/youtube_dl/extractor/common.py", line 433, in extract
ie_result = self._real_extract(url)
File "/usr/lib/python3.6/site-packages/youtube_dl/extractor/youtube.py", line 2216, in _real_extract
has_videos, playlist = self._extract_playlist(playlist_id)
File "/usr/lib/python3.6/site-packages/youtube_dl/extractor/youtube.py", line 2159, in _extract_playlist
raise ExtractorError(message, expected=True)
youtube_dl.utils.ExtractorError: This playlist is private, use --username or --netrc to access it.
Using --cookies instead of --username/--password worked fine.
Please follow the guide below
x
into all the boxes [ ] relevant to your issue (like that [x])Make sure you are using the latest version: run
youtube-dl --version
and ensure your version is 2017.05.09. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.Before submitting an issue make sure you have:
What is the purpose of your issue?
The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue
If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:
Add
-v
flag to your command line you run youtube-dl with, copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):Description of your issue, suggested solution and other information
Hi, youtube-dl is now rejecting my attempts to enter my two-factor code, making me unable to download a YouTube Red video. I add my username and password to my config file, and youtube-dl correctly asks for my two-factor, but it rejects it every time with the "HTTP Error 500: Internal Server Error" error. I have tried doing this on a separate computer with a separate internet connection, and I have tried using both my Authy token and a backup code token. I have also tried it manually without using any config file. This worked several months ago, so maybe something changed on the app's end or youtube's end? Thx!