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

Downloading private video / bash error? #12653

Closed
dtradish opened this issue Apr 5, 2017 · 2 comments
Closed

Downloading private video / bash error? #12653

dtradish opened this issue Apr 5, 2017 · 2 comments
Labels

Comments

@dtradish
Copy link

@dtradish dtradish commented Apr 5, 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.03. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.

  • I've verified and I assure that I'm running youtube-dl 2017.04.03

Before submitting an issue make sure you have:

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

What is the purpose of your issue?

  • 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 --verbose -u username -p password "https://www.youtube.com/watch?v=A25kmydqfJk"
[1] 50940
-bash: https://www.youtube.com/watch?v=A25kmydqfJk: No such file or directory
$ [debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'--verbose', u'-u', u'PRIVATE', u'-p', u'PRIVATE']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.04.03
[debug] Python version 2.7.8 - Darwin-15.6.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 3.1.3, ffprobe 3.1.3
[debug] Proxy map: {}
Usage: youtube-dl [OPTIONS] URL [URL...]

youtube-dl: error: You must provide at least one URL.
Type youtube-dl --help to see a list of all options
<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

Explanation of your issue in arbitrary form goes here. Please make sure the description is worded well enough to be understood. Provide as much context and examples as possible.
If work on your issue requires account credentials please provide them or explain how one can obtain them.

I went to the IRC link for #youtube-dl and asked for help there, but the user helping me suggested that it is a bug. In my verbose output, the command line arguments doesn't read the youtube link despite including it. The user also noticed I get a bash error but I'm not sure what that means either. I replaced username and password with the actual credentials, but that was not the issue.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Apr 5, 2017

You have to either put the username and password into quotes or manually escape all the special shell characters. Read FAQ entry for details.

@dstftw dstftw closed this Apr 5, 2017
@dstftw dstftw added the invalid label Apr 5, 2017
@dtradish
Copy link
Author

@dtradish dtradish commented Apr 5, 2017

I tried wrapping both the username and password with " and ', but they still give me a but these are the errors that followed:

$youtube-dl --verbose -u "username" -p "password" 'https://www.youtube.com/watch?v=A25kmydqfJk'
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'--verbose', u'-u', u'PRIVATE', u'-p', u'PRIVATE', u'https://www.youtube.com/watch?v=A25kmydqfJk']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.04.03
[debug] Python version 2.7.8 - Darwin-15.6.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 3.1.3, ffprobe 3.1.3
[debug] Proxy map: {}
[youtube] Downloading login page
[youtube] Logging in
WARNING: unable to log in: HTTP Error 400: Bad Request
[youtube] A25kmydqfJk: Downloading webpage
[youtube] A25kmydqfJk: Downloading embed webpage
[youtube] A25kmydqfJk: Refetching age-gated info webpage
ERROR: A25kmydqfJk: YouTube said: This video is private.
Traceback (most recent call last):
  File "/Users/Sidd26/Downloads/anaconda/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 761, in extract_info
    ie_result = ie.extract(url)
  File "/Users/Sidd26/Downloads/anaconda/lib/python2.7/site-packages/youtube_dl/extractor/common.py", line 429, in extract
    ie_result = self._real_extract(url)
  File "/Users/Sidd26/Downloads/anaconda/lib/python2.7/site-packages/youtube_dl/extractor/youtube.py", line 1403, in _real_extract
    expected=True, video_id=video_id)
ExtractorError: A25kmydqfJk: YouTube said: This video is private.
<end of log>

My youtube link doesn't have an ampersand, but could it be an issue b/c my password contains an ampersand? What special characters do I need to worry about to backslash?

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