From 3cb82a9a044dd47a12176a03420e2a50bebf1d03 Mon Sep 17 00:00:00 2001 From: Przemyslaw Pluta Date: Thu, 4 Sep 2014 14:34:07 +0100 Subject: [PATCH] fix youtube id filtering 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. --- lib/youtube-dl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/youtube-dl.js b/lib/youtube-dl.js index 2c234f5..9adf8fd 100644 --- a/lib/youtube-dl.js +++ b/lib/youtube-dl.js @@ -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); } }