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

Private video download error #1374

Closed
techhk opened this issue Sep 5, 2013 · 18 comments
Closed

Private video download error #1374

techhk opened this issue Sep 5, 2013 · 18 comments
Assignees
Labels
bug

Comments

@techhk
Copy link

@techhk techhk commented Sep 5, 2013

I am trying to download a private video that I am subscribed to.

I get error. Ran with --verbose option and here is the output.

C:>youtube-dl http://www.youtube.com/watch?v=&list=
&index=1 --verbose
[youtube] Setting language
[youtube] R-qjyEn3bjs: Downloading video webpage
[youtube] R-qjyEn3bjs: Downloading video info webpage
[youtube] R-qjyEn3bjs: Extracting video information
ERROR: unable to open for writing: [Errno 22] invalid mode ('wb') or filename: u
'.com-R-qjyEn3bjs.mp4.part'
'list' is not recognized as an internal or external command,
operable program or batch file.
'index' is not recognized as an internal or external command,
operable program or batch file.

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Sep 5, 2013

Please post the output when you run youtube-dl "http://www.youtube.com/watch?v=R-qjyEn3bjs" --verbose please, some output is missing. You should enclose the url with ', otherwise characters like & are treated different by your shell.

@techhk
Copy link
Author

@techhk techhk commented Sep 5, 2013

Jaime, These videos are part of playlist, which has private and public videos. Private videos end with &index=3 etc. When I try to download the playlist with " around the link and with --verbose, it downloads public videos without error and doesn't download private videos.There are no error to show.

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Sep 5, 2013

Okay, then, could you post the playlist url (and maybe the private video urls to speed up the process) please , I'm not sure if the Youtube API includes the private videos.
You say there are no errors, do you still get the error you posted?

@techhk
Copy link
Author

@techhk techhk commented Sep 5, 2013

Here is the link.
http://www.youtube.com/playlist?list=PLnQL3JwXMDv0ruWY-uEn3CINt4fdHZm57

I only get the error when I use it without " ". Using with" " downloads 2 public videos and that's it.

Thank you.

@ghost ghost assigned jaimeMF Sep 5, 2013
@jaimeMF jaimeMF closed this in c215217 Sep 5, 2013
@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Sep 5, 2013

Thanks for the report! it's fixed now in the repo.
I think you had the same problem in #1178, am I correct?

@techhk
Copy link
Author

@techhk techhk commented Sep 5, 2013

Jaime, What do I need to do to make it work for me? I just downloaded youtube-dl again and ran the new exe with the playlist link and as before only 2 videos got downloaded. Thanks.

@phihag
Copy link
Contributor

@phihag phihag commented Sep 5, 2013

@hkhakharia Run youtube-dl -U once to get the newest version, 2013.09.05, which includes the fix.

@techhk
Copy link
Author

@techhk techhk commented Sep 5, 2013

So I thought but when I tried to do that, I got ERROR: no write permissions on youtube-dl

@phihag
Copy link
Contributor

@phihag phihag commented Sep 6, 2013

@hkhakharia If you have installed youtube-dl to a administrator-only location like C:, you'll need to run the update in an elevated command prompt. Alternatively, just right-click and select Save As on this link, and overwrite your existing copy of youtube-dl.exe.

@techhk
Copy link
Author

@techhk techhk commented Sep 6, 2013

Thanks, @phihag,@jaimeMF Still getting error.

Ran this for a private video.
Got this.

C:\Users\hkhakharia>youtube-dl http://www.youtube.com/watch?v=k6QdPgsJWVA --verb
ose
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['http://www.youtube.com/watch?v=k6QdPgsJWVA', '--ver
bose']
[debug] youtube-dl version 2013.09.06.1
[debug] Python version 2.7.3 - Windows-7-6.1.7601-SP1
[debug] Proxy map: {}
[youtube] Setting language
[youtube] k6QdPgsJWVA: Downloading video webpage
[youtube] k6QdPgsJWVA: Downloading video info webpage
ERROR: YouTube said: This video is private.
Traceback (most recent call last):
File "youtube_dl\YoutubeDL.pyo", line 324, in extract_info
File "youtube_dl\extractor\common.pyo", line 103, in extract
File "youtube_dl\extractor\youtube.pyo", line 711, in _real_extract
ExtractorError: YouTube said: This video is private.

Ran this for the private playlist and got the error.

[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['http://www.youtube.com/playlist?list=PLnQL3JwXMDv0r
uWY-uEn3CINt4fdHZm57', '--verbose']
[debug] youtube-dl version 2013.09.06.1
[debug] Python version 2.7.3 - Windows-7-6.1.7601-SP1
[debug] Proxy map: {}
[youtube:user] playlist: Downloading video ids from 1 to 51
ERROR: Unable to download webpage: HTTP Error 404: Not Found; please report this
issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose
flag and include its complete output. Make sure you are using the latest version
; type youtube-dl -U to update.
File "youtube_dl\extractor\common.pyo", line 133, in _request_webpage
File "urllib2.pyo", line 126, in urlopen
File "urllib2.pyo", line 406, in open
File "urllib2.pyo", line 519, in http_response
File "urllib2.pyo", line 444, in error
File "urllib2.pyo", line 378, in _call_chain
File "urllib2.pyo", line 527, in http_error_default

jaimeMF added a commit that referenced this issue Sep 6, 2013
… (reported in #1374)

They were being caught by YoutubeUserIE, now it only extracts a url if the rest of extractors aren't suitable.
Now the url tests check that the urls can only be extracted with an specific extractor.
@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Sep 6, 2013

The second error is fixed in the repo now, sorry for the problem.
In the first case, since it's a private video, you need to use your login info with the --username and --password options

@techhk
Copy link
Author

@techhk techhk commented Sep 6, 2013

Still no luck with either of them. I updated my youtube-dl

youtube-dl --username <> --password <> "http://www.youtube.com/watch?v=urKaX-a-6PA&list=PLnQL3JwXMDv0ruWY-uEn3CINt4fdHZm57&
index=3" --verbose
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--username', '', '--password', ''
, 'http://www.youtube.com/watch?v=urKaX-a-6PA&list=PLnQL3JwXMDv0ruWY-uEn3CINt4fd
HZm57&index=3', '--verbose']
[debug] youtube-dl version 2013.09.06.1
[debug] Python version 2.7.3 - Windows-7-6.1.7601-SP1
[debug] Proxy map: {}
[youtube:user] watch: Downloading video ids from 1 to 51
ERROR: Unable to download webpage: HTTP Error 403: Forbidden; please report this
issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose
flag and include its complete output. Make sure you are using the latest version
; type youtube-dl -U to update.
File "youtube_dl\extractor\common.pyo", line 133, in _request_webpage
File "urllib2.pyo", line 126, in urlopen
File "urllib2.pyo", line 406, in open
File "urllib2.pyo", line 519, in http_response
File "urllib2.pyo", line 444, in error
File "urllib2.pyo", line 378, in _call_chain
File "urllib2.pyo", line 527, in http_error_default

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Sep 6, 2013

using youtube-dl --username USER --password PASS http://www.youtube.com/watch?v=k6QdPgsJWVA should work if you have access to the video.
I fixed the playlist issue a few minutes ago, you'll have to wait for a new release, sorry.

@techhk
Copy link
Author

@techhk techhk commented Sep 6, 2013

Thanks a lot, @jaimeMF! I eneded up downloading individual videos. I am all set.

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Sep 8, 2013

You can update to 2013.09.07 which have the bug fixed, if you find more problems, just open a new issue, thanks!

@dagolinuxoid
Copy link

@dagolinuxoid dagolinuxoid commented Sep 27, 2014

~$ youtube-dl -F http://www.youtube.com/watch?v=HRIF4_WzU1w
[youtube] Setting language
[youtube] Confirming age
[youtube] HRIF4_WzU1w: Downloading webpage
[youtube] HRIF4_WzU1w: Downloading video info webpage
ERROR: HRIF4_WzU1w: YouTube said: This video is private.
How download it guys? Few times ago I could download this video, but now I see ERROR

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Sep 27, 2014

@dagolinuxoid If I try to watch the video on the browser I get This video is not available, so we can't do anything, If you can access the video when you are logged in you'll need to use the --username and --password options. (Please open new issues in the future)

@dagolinuxoid
Copy link

@dagolinuxoid dagolinuxoid commented Sep 27, 2014

thx for answer, but already solved

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