From a6bca5536f9f30156528603535298e1423f9834b Mon Sep 17 00:00:00 2001 From: Jonathan Cremin Date: Tue, 13 Jan 2015 12:44:06 +0000 Subject: [PATCH] Handle unsupported spotify urls --- lib/services/spotify/url.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/services/spotify/url.js b/lib/services/spotify/url.js index 130bfff..46a80d5 100644 --- a/lib/services/spotify/url.js +++ b/lib/services/spotify/url.js @@ -8,5 +8,5 @@ module.exports.match = function(url, type) { } var matches = parse(url).path.match(/\/(album|track)[\/]+([^\/]+)/); - return !!matches[2]; + return matches && !!matches[2]; };