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 Login Doesn't Work with -username -password #22600

Closed
jmitz5 opened this issue Oct 4, 2019 · 2 comments
Closed

Youtube Login Doesn't Work with -username -password #22600

jmitz5 opened this issue Oct 4, 2019 · 2 comments
Labels

Comments

@jmitz5
Copy link

@jmitz5 jmitz5 commented Oct 4, 2019

Checklist

  • I'm reporting a broken site support
  • I've verified that I'm running youtube-dl version 2019.09.28
  • 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

Verbose log


Here is one atempt:

youtube-dl -v --username 'Jacob Mitz' --password ‘password’ https://www.youtube.com/watch?v=Z7Os4WzELek
[debug] System config: [u'-o', u'~/Downloads/%(title)s-DL.%(ext)s', u'-f', u'bestvideo[ext=webm]+258/bestvideo[ext=webm]+251/bestvideo[ext=webm]+bestaudio/bestvideo[ext=mp4]+258/bestvideo[ext=mp4]+251/bestvideo[ext=mp4]+bestaudio/best', u'--no-playlist', u'--write-sub', u'--write-auto-sub', u'--sub-lang', u'en,en-GB', u'--embed-subs', u'--add-metadata', u'--sub-format', u'ttml/srv3/srv2/srv1/vtt', u'--convert-subs', u'vtt']
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'--username', u'PRIVATE', u'--password', u'PRIVATE', u'https://www.youtube.com/watch?v=Z7Os4WzELek']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2019.09.28
[debug] Python version 2.7.10 (CPython) - Darwin-17.7.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 4.0.1, ffprobe 4.0.1
[debug] Proxy map: {}
[youtube] Downloading login page
[youtube] Looking up account info
WARNING: Unable to extract user hash
[youtube] Z7Os4WzELek: Downloading webpage
[youtube] Z7Os4WzELek: Downloading embed webpage
[youtube] Z7Os4WzELek: Refetching age-gated info webpage
WARNING: Unable to extract video title
WARNING: unable to extract description; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
[youtube] Downloading just video Z7Os4WzELek because of --no-playlist
ERROR: Content Warning
If the owner of this video has granted you access, please sign in.
       This video is private.
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 796, in extract_info
    ie_result = ie.extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 530, in extract
    ie_result = self._real_extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 2148, in _real_extract
    raise ExtractorError(error_message, expected=True)
ExtractorError: Content Warning
If the owner of this video has granted you access, please sign in.
       This video is private.




Here is a different atempt:

youtube-dl -v --username 'jmitzenmacher5' --password ‘password’ https://www.youtube.com/watch?v=Z7Os4WzELek
[debug] System config: [u'-o', u'~/Downloads/%(title)s-DL.%(ext)s', u'-f', u'bestvideo[ext=webm]+258/bestvideo[ext=webm]+251/bestvideo[ext=webm]+bestaudio/bestvideo[ext=mp4]+258/bestvideo[ext=mp4]+251/bestvideo[ext=mp4]+bestaudio/best', u'--no-playlist', u'--write-sub', u'--write-auto-sub', u'--sub-lang', u'en,en-GB', u'--embed-subs', u'--add-metadata', u'--sub-format', u'ttml/srv3/srv2/srv1/vtt', u'--convert-subs', u'vtt']
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'--username', u'PRIVATE', u'--password', u'PRIVATE', u'https://www.youtube.com/watch?v=Z7Os4WzELek']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2019.09.28
[debug] Python version 2.7.10 (CPython) - Darwin-17.7.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 4.0.1, ffprobe 4.0.1
[debug] Proxy map: {}
[youtube] Downloading login page
[youtube] Looking up account info
[youtube] Logging in
WARNING: Unable to extract result entry
[youtube] Z7Os4WzELek: Downloading webpage
[youtube] Z7Os4WzELek: Downloading embed webpage
[youtube] Z7Os4WzELek: Refetching age-gated info webpage
WARNING: Unable to extract video title
WARNING: unable to extract description; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
[youtube] Downloading just video Z7Os4WzELek because of --no-playlist
ERROR: Content Warning
If the owner of this video has granted you access, please sign in.
       This video is private.
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 796, in extract_info
    ie_result = ie.extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 530, in extract
    ie_result = self._real_extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 2148, in _real_extract
    raise ExtractorError(error_message, expected=True)
ExtractorError: Content Warning
If the owner of this video has granted you access, please sign in.
       This video is private.

Description

WRITE DESCRIPTION HERE

I am trying to download a private youtube video by using the --username --password options, but the login process never seems to work. In the verbose logs, you can see I tried it with my username, but I also tried it with my Gmail login (both with and without the @gmail.com part). I also tried all of those combinations with and without the escaping tick marks. I'm not sure what else to try, other than just going the cookie route (I did try that too, but all of the tutorials on it don't seem to be fully up to date regarding google's security).

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Oct 4, 2019

Invalid quotes for password.

@dstftw dstftw closed this Oct 4, 2019
@dstftw dstftw added the invalid label Oct 4, 2019
@overgara2012
Copy link

@overgara2012 overgara2012 commented Oct 26, 2019

I have same issue:

C:\Users\overg\Downloads>youtube-dl --verbose --username "overgara@gmail.com" --password "xxxxxxx" "https://www.youtube.com/watch?time_continue=985&v=wpWvdcHZqnk"
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--verbose', '--username', 'PRIVATE', '--password', 'PRIVATE', 'https://www.youtube.com/watch?time_continue=985&v=wpWvdcHZqnk']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2019.10.22
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.17763
[debug] exe versions: none
[debug] Proxy map: {}
[youtube] Downloading login page
[youtube] Looking up account info
[youtube] Logging in
WARNING: Unable to extract result entry
[youtube] wpWvdcHZqnk: Downloading webpage
[youtube] wpWvdcHZqnk: Downloading embed webpage
[youtube] wpWvdcHZqnk: Refetching age-gated info webpage
WARNING: Unable to extract video title
WARNING: unable to extract description; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
ERROR: Content Warning
If the owner of this video has granted you access, please sign in.
This video is private.
Traceback (most recent call last):
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpifszpy0p\build\youtube_dl\YoutubeDL.py", line 796, in extract_info
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpifszpy0p\build\youtube_dl\extractor\common.py", line 530, in extract
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpifszpy0p\build\youtube_dl\extractor\youtube.py", line 2148, in _real_extract
youtube_dl.utils.ExtractorError: Content Warning
If the owner of this video has granted you access, please sign in.
This video is private.

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

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.