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

Commit

Permalink
fix youtube id filtering
Browse files Browse the repository at this point in the history
If the youtube link is based on short version like `http://youtu.be/UowkIRSDHfs` the ids were not filtered out properly. This will fix this issue.
  • Loading branch information
przemyslawpluta committed Sep 4, 2014
1 parent 09d2951 commit 3cb82a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/youtube-dl.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function call(video, args1, args2, options, callback) {
} else {
// Get possible IDs for youtu.be from urladdr.
id = details.pathname.slice(1).replace(/^v\//, '');
if (id === 'playlist') {
if (id || id === 'playlist') {
args.push(video);
}
}
Expand Down

0 comments on commit 3cb82a9

Please sign in to comment.