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

I get error on some YouTube URLs #244

Closed
truhlikfredy opened this issue Dec 5, 2011 · 4 comments
Closed

I get error on some YouTube URLs #244

truhlikfredy opened this issue Dec 5, 2011 · 4 comments

Comments

@truhlikfredy
Copy link

@truhlikfredy truhlikfredy commented Dec 5, 2011

@aam1r
Copy link

@aam1r aam1r commented Dec 6, 2011

http://www.youtube.com/watch?feature=fvwp&v=xWF0q6zCslE&NR=1 doesn't work for me however http://www.youtube.com/watch?v=xWF0q6zCslE works fine.

I believe it has errors while parsing the URL. Try passing in a URL where 'v' is the first parameter

@phihag
Copy link
Contributor

@phihag phihag commented Dec 6, 2011

youtube-dl 'http://www.youtube.com/watch?feature=fvwp&v=xWF0q6zCslE&NR=1'

works fine on my machine. Can you post your exact command line? Note that URLs (or any arguments) containing ampersands must be put in quotes in the shell, lest they are interpreted as shell metacharacters. For example,

youtube-dl http://www.youtube.com/watch?feature=fvwp&v=xWF0q6zCslE&NR=1

is the same as

youtube-dl http://www.youtube.com/watch?feature=fvwp & v=xWF0q6zCslE & NR=1

. It executes youtube-dl in the background (that's what the ampersand does), sets the variable v in the background, and then sets the variable NR.

Since this is a common mistake, we should maybe include it in the FAQ. It is already mentioned in the BUGS section (scroll down to the bottom of https://github.com/rg3/youtube-dl ).

@phihag phihag closed this Dec 6, 2011
@truhlikfredy
Copy link
Author

@truhlikfredy truhlikfredy commented Dec 6, 2011

acctualy there was different problem, parsing urls from xml and the "amp" were literary "amp" and not "&" so after conversion of html tags in bash got sorted out. It didn't showed here because this comment form convert it too, so & amp became just & and you got different link than mine script had.

@truhlikfredy
Copy link
Author

@truhlikfredy truhlikfredy commented Dec 6, 2011

But thanks anyway you helped me realise the html tags problem without pointing to it directly :D

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.