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

Can't find a video. #92

Closed
semprom opened this issue Mar 11, 2011 · 9 comments
Closed

Can't find a video. #92

semprom opened this issue Mar 11, 2011 · 9 comments

Comments

@semprom
Copy link

semprom commented Mar 11, 2011

Hello.
When i try to download this video http://www.youtube.com/watch?v=1yw1Tgj9-VU the script tell me that it can't find the video. (ERROR: unable to download video webpage: HTTP Error 404: Not Found) Why is that?

Thanks.

@ppawel
Copy link

ppawel commented Mar 12, 2011

Confirmed - I've seen 404 errors with some of the videos I tried to download as well.

@ppawel
Copy link

ppawel commented Mar 12, 2011

I think this can be related to the availability of given video in specific countries. The video that you provided the link to does download for me without problems.

However, some videos are not available for me apparently because I'm in Poland (some message like "This video contains content copyrighted by Sony Entertainment") and these are the videos that I get 404 error in youtube-dl.

@ppawel
Copy link

ppawel commented Mar 12, 2011

Just a thought - implementing something like https://github.com/rg3/youtube-dl/issues#issue/7 could provide a fallback option if a video cannot be downloaded directly from Youtube.

@rg3
Copy link
Collaborator

rg3 commented Mar 12, 2011

I can view that video in a web browser and download it with youtube-dl. Like ppawel said, 404 errors usually refer to YouTube errors about the video being unavailable for you. They can't be watched with a web browser either. In fact, those pages YouTube serves with the error messages are really 404s in HTTP.

See for example:

http://www.youtube.com/watch?v=malformed

And the result of attempting to access that page with curl:

$ curl -D headers.txt -o malformed.html 'http://www.youtube.com/watch?v=malformed&hl=en'
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 20936    0 20936    0     0  57837      0 --:--:-- --:--:-- --:--:--  103k
$ cat headers.txt 
HTTP/1.1 404 Not Found
Date: Sat, 12 Mar 2011 19:24:32 GMT
Server: wiseguy/0.6.7
X-Content-Type-Options: nosniff
Set-Cookie: use_hitbox=3d11d5cb2b3e40e368f83f82e88170a4dAEAAAAx; path=/; domain=.youtube.com
Set-Cookie: VISITOR_INFO1_LIVE=WnItksx5zLQ; path=/; domain=.youtube.com; expires=Mon, 07-Nov-2011 19:24:32 GMT
Set-Cookie: PREF=f1=50000000; path=/; domain=.youtube.com; expires=Tue, 09-Mar-2021 19:24:32 GMT
Set-Cookie: GEO=d82d5be5d6ec570afbc10eccc17b3ebccwsAAAAzRVNVmM3HTXvIcA==; path=/; domain=.youtube.com
Expires: Tue, 27 Apr 1971 19:44:06 EST
Cache-Control: no-cache
Content-Type: text/html; charset=utf-8
Transfer-Encoding: chunked
$ grep 'malformed video ID' malformed.html 
            
The URL contained a malformed video ID.

@semprom
Copy link
Author

semprom commented Mar 20, 2011

Can i use the http_proxy ? Will that kind of fix the problem?
The server i'm running youtube-dl is in Germany and i really don't want to change it.

@rg3
Copy link
Collaborator

rg3 commented Mar 29, 2011

Yes, you can use http_proxy. This is explained in the program documentation.

http://rg3.github.com/youtube-dl/documentation.html#d5

@semprom
Copy link
Author

semprom commented Mar 29, 2011

Can you give me a example for a proxy because i can't find any working.
( maybe i'm not making it the right way )

@rg3
Copy link
Collaborator

rg3 commented Mar 29, 2011

I don't know any public HTTP proxy, sorry.

@semprom
Copy link
Author

semprom commented Mar 30, 2011

From where can I get private proxy in the USA then?
I just need this to work xD
I'm trying with this now http://spys.ru/free-proxy-list/US/ but no luck.

joedborg referenced this issue in joedborg/youtube-dl Nov 17, 2020
[pull] master from rg3:master
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants