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

Commit

Permalink
Fix - Incorrect youtube video URL
Browse files Browse the repository at this point in the history
typo
  • Loading branch information
przemyslawpluta committed Feb 12, 2014
1 parent a5eeb09 commit 04f4aaa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/youtube-dl.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ exports.download = function(urladdr, dest, args) {
args.push(urladdr);

// soft check for youtube video
var isYouToube = urladdr.match(/(youtube|youtu.be)/),
var isYouTube = urladdr.match(/(youtube|youtu.be)/),
details = url.parse(urladdr, true),
query = details.query,
id = query.v;

if (isYouToube) {
if (isYouTube) {
pathname = details.pathname.slice(1);
// Get possible IDs from urladdr.
if (!id) { id = pathname; }
Expand Down

0 comments on commit 04f4aaa

Please sign in to comment.