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

Authenticating into Youtube Fails. #12927

Closed
Togame-san opened this issue Apr 30, 2017 · 9 comments
Closed

Authenticating into Youtube Fails. #12927

Togame-san opened this issue Apr 30, 2017 · 9 comments

Comments

@Togame-san
Copy link

@Togame-san Togame-san commented Apr 30, 2017

Please follow the guide below

  • You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
  • Put an x into all the boxes [ ] relevant to your issue (like that [x])
  • Use Preview tab to see how your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2017.04.28. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.

  • [X ] I've verified and I assure that I'm running youtube-dl 2017.04.28

Before submitting an issue make sure you have:

  • [X ] At least skimmed through README and most notably FAQ and BUGS sections
  • [ X] Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

  • [X ] Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

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 ```):

youtube-dl --username "Username@gmail.com" --password SomePassword -v https://www.youtube.com/watch?v=GU-2C8Ec6co
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'-u', u'PRIVATE', u'-p', u'PRIVATE', u'https://www.youtube.com/playlist?list=PLpTleIvqKJUfi5klQ1s-kzJn24FhjBmuN']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.04.28
[debug] Python version 2.7.13 - Darwin-13.4.0-x86_64-i386-64bit
[debug] exe versions: avconv 12, avprobe 12
[debug] Proxy map: {}
[youtube:playlist] Downloading login page
[youtube:playlist] Logging in
[youtube:playlist] PLpTleIvqKJUfi5klQ1s-kzJn24FhjBmuN: Downloading webpage
ERROR: This playlist is private, use --username or --netrc to access it.
Traceback (most recent call last):
  File "/Users/arman/anaconda2/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 760, in extract_info
    ie_result = ie.extract(url)
  File "/Users/arman/anaconda2/lib/python2.7/site-packages/youtube_dl/extractor/common.py", line 429, in extract
    ie_result = self._real_extract(url)
  File "/Users/arman/anaconda2/lib/python2.7/site-packages/youtube_dl/extractor/youtube.py", line 2103, in _real_extract
    has_videos, playlist = self._extract_playlist(playlist_id)
  File "/Users/arman/anaconda2/lib/python2.7/site-packages/youtube_dl/extractor/youtube.py", line 2046, in _extract_playlist
    raise ExtractorError(message, expected=True)
ExtractorError: This playlist is private, use --username or --netrc to access it.
...
<end of log>

If the purpose of this issue is a site support request please provide all kinds of example URLs support for which should be included (replace following example URLs by yours):

Note that youtube-dl does not support sites dedicated to copyright infringement. In order for site support request to be accepted all provided example URLs should not violate any copyrights.


Description of your issue, suggested solution and other information

The issue i have is that I have provided my login information but the program does not appear to recognize it. It appears that it does not login incorrectly. Please assume I have provided the correct username and password. The playlist I am accessing is a test playlist that is private.

@Togame-san
Copy link
Author

@Togame-san Togame-san commented Apr 30, 2017

Please note that the current URL points to just a video. I added the wrong command. Here is the log for an actual attempt to access a private playlist.

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'-u', u'PRIVATE', u'-p', u'PRIVATE', u'https://www.youtube.com/playlist?list=PLpTleIvqKJUfi5klQ1s-kzJn24FhjBmuN']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.04.28
[debug] Python version 2.7.13 - Darwin-13.4.0-x86_64-i386-64bit
[debug] exe versions: avconv 12, avprobe 12
[debug] Proxy map: {}
[youtube:playlist] Downloading login page
[youtube:playlist] Logging in
[youtube:playlist] PLpTleIvqKJUfi5klQ1s-kzJn24FhjBmuN: Downloading webpage
ERROR: This playlist is private, use --username or --netrc to access it.
Traceback (most recent call last):
File "/Users/arman/anaconda2/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 760, in extract_info
ie_result = ie.extract(url)
File "/Users/arman/anaconda2/lib/python2.7/site-packages/youtube_dl/extractor/common.py", line 429, in extract
ie_result = self._real_extract(url)
File "/Users/arman/anaconda2/lib/python2.7/site-packages/youtube_dl/extractor/youtube.py", line 2103, in _real_extract
has_videos, playlist = self._extract_playlist(playlist_id)
File "/Users/arman/anaconda2/lib/python2.7/site-packages/youtube_dl/extractor/youtube.py", line 2046, in _extract_playlist
raise ExtractorError(message, expected=True)
ExtractorError: This playlist is private, use --username or --netrc to access it.

@Togame-san
Copy link
Author

@Togame-san Togame-san commented Apr 30, 2017

The format of the command is as in the previous log; the url is the only thing changed.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Apr 30, 2017

Post the output with --dump-pages.

@Togame-san
Copy link
Author

@Togame-san Togame-san commented Apr 30, 2017

@Togame-san
Copy link
Author

@Togame-san Togame-san commented Apr 30, 2017

What I want to do is create a script so that I can access all the playlists a youtube user has and download the one that he or she specifies.

@HPP8140
Copy link

@HPP8140 HPP8140 commented Apr 30, 2017

Happens to me as well....works most of the time. I think it is related to new sign-in page.
https://support.google.com/accounts/answer/7338427?visit_id=0-636291563247234608-2983872999&p=signin_newlook&rd=1

Worked:
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u':ytwatchlater', u'-u', u'PRIVATE', u'-p', u'PRIVATE', u'-v', u'-s', u'-j', u'--flat-playlist']
[debug] Encodings: locale ANSI_X3.4-1968, fs ANSI_X3.4-1968, out None, pref ANSI_X3.4-1968
[debug] youtube-dl version 2017.04.28
[debug] Python version 2.7.9 - Linux-3.14.0-kirkwood-tld-1-armv5tel-with-debian-8.5
[debug] exe versions: avconv 11.6-6, avprobe 11.6-6, ffmpeg 0.8.20-6
[debug] Proxy map: {}

Error a couple seconds later:
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u':ytwatchlater', u'-u', u'PRIVATE', u'-p', u'PRIVATE', u'-v', u'-s', u'-j', u'--flat-playlist']
[debug] Encodings: locale ANSI_X3.4-1968, fs ANSI_X3.4-1968, out None, pref ANSI_X3.4-1968
[debug] youtube-dl version 2017.04.28
[debug] Python version 2.7.9 - Linux-3.14.0-kirkwood-tld-1-armv5tel-with-debian-8.5
[debug] exe versions: avconv 11.6-6, avprobe 11.6-6, ffmpeg 0.8.20-6
[debug] Proxy map: {}
ERROR: This playlist does not exist.
Traceback (most recent call last):
File "/usr/lib/python2.7/youtube_dl/YoutubeDL.py", line 760, in extract_info
ie_result = ie.extract(url)
File "/usr/lib/python2.7/youtube_dl/extractor/common.py", line 429, in extract
ie_result = self._real_extract(url)
File "/usr/lib/python2.7/youtube_dl/extractor/youtube.py", line 2504, in _real_extract
_, playlist = self._extract_playlist('WL')
File "/usr/lib/python2.7/youtube_dl/extractor/youtube.py", line 2046, in _extract_playlist
raise ExtractorError(message, expected=True)
ExtractorError: This playlist does not exist.

WARNING: unable to log in: bad username or password
ERROR: This playlist does not exist.

@HPP8140
Copy link

@HPP8140 HPP8140 commented May 6, 2017

Thanks

@sdudley7
Copy link

@sdudley7 sdudley7 commented Aug 16, 2019

Same issue

@perpi
Copy link

@perpi perpi commented Oct 28, 2019

I have encountered this error using this command over Tor network:

youtube-dl -u myid@gmail.com -p mypass --write-auto-sub --sub-lang en --convert-subs "srt" --output ~/%\(title\)s https://youtube.com/playlist?list=somestringshere

ERROR: This playlist is private, use --username or --netrc to access it.

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
5 participants
You can’t perform that action at this time.