-
Notifications
You must be signed in to change notification settings - Fork 365
Fails with non-Youtube sites #39
Comments
Added a test for this. https://github.com/fent/node-youtube-dl/blob/master/test/getInfo.js#L30 |
Ah, thanks for being quick. I was just about to submit a pull request. |
just downloaded and tested above vimeo url - still the problem occurs for me (windows environment):
|
The tests still pass, and the differences with Windows doesn't affect how it behaves for other non-youtube sites. |
well this is odd... i am using following script: https://gist.github.com/anonymous/deb88e12fa3aa7620d61 |
Can you print what https://github.com/fent/node-youtube-dl/blob/master/lib/youtube-dl.js#L98 |
https://gist.github.com/kminek/2adbca3f6bea69046659 looks like url is not passed correctly |
I can't figure out why it would get up to that point with those variables. It looks like if it's not a youtube url, by checking |
ok i think i found problem, it looks like the version installed via npm is older and does not contain fix in this ticket :) putting |
Oh, it looks like I forgot to npm publish that fix. Sorry, will do that soon. |
When I try to do .getInfo for an Vimeo video, it fails. Even though you mention in the readme that this supports many more sites (like youtube-dl itself does), it looks like yours isn't made to work with any other sites.
Two places where I know it messes up is on line 95, where it defaults to http://www.youtube.com/watch?v= if a playlist isn't detected, and when that is fixed, the parsing of info doesn't seem to work.
I'm testing against the Vimeo video https://vimeo.com/6586873
The text was updated successfully, but these errors were encountered: