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

Fails to download videos from certain URLs #543

Closed
niyazpk opened this issue Nov 24, 2012 · 1 comment
Closed

Fails to download videos from certain URLs #543

niyazpk opened this issue Nov 24, 2012 · 1 comment

Comments

@niyazpk
Copy link

@niyazpk niyazpk commented Nov 24, 2012

Command:

youtube-dl -cit http://www.youtube.com/watch?feature=player_embedded&v=wB3R5Xk2gTY

Result:

[youtube] Setting language
[youtube] watch: Downloading video webpage
ERROR: unable to download video webpage: HTTP Error 404: Not Found
'v' is not recognized as an internal or external command,
operable program or batch file.

This command is working though:

youtube-dl -cil http://www.youtube.com/watch?v=wB3R5Xk2gTY

So I assume it has something to do with the URL params.

@Tailszefox
Copy link
Contributor

@Tailszefox Tailszefox commented Nov 24, 2012

This is because of the ampersand in the URL of the video, as well as some other special characters depending on the shell you're using. Your second URL was simpler, that's why it worked with it. To solve that, simply quote your URL:

% youtube-dl -cit "http://www.youtube.com/watch?feature=player_embedded&v=wB3R5Xk2gTY"
[youtube] Setting language
[youtube] wB3R5Xk2gTY: Downloading video webpage
[youtube] wB3R5Xk2gTY: Downloading video info webpage
[youtube] wB3R5Xk2gTY: Extracting video information
[download] Destination: Elon Musk lecture at the Royal Aeronautical Society-wB3R5Xk2gTY.flv
[download]   1.1% of 227.59M at   21.59k/s ETA --:--

On Linux, I'd say it's better to use single quotes but given the error message, I assume you're using Windows, which seems to not take into account single quotes. Double quotes should still do the trick, though.

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.