Skip to content
This repository has been archived by the owner on Dec 3, 2023. It is now read-only.

Commit

Permalink
removed check for query.v that breaks soundcloud functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
btmdave committed Oct 22, 2013
1 parent 23128d7 commit 11da4f7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/youtube-dl.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,7 @@ exports.download = function(urladdr, dest, args) {

// Get ID from urladdr.
var query = url.parse(urladdr, true).query;
if (!query.v) {
throw new Error('Video URL must contain a video ID.');
}
var id = query.v;
var id = query.v || '';

// Call youtube-dl.
var youtubedl = spawn(file, args, { cwd: dest });
Expand Down

0 comments on commit 11da4f7

Please sign in to comment.