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]; };