Add rdio support

This commit is contained in:
Jonathan Cremin 2014-12-01 11:53:25 +00:00
parent aca2eea4dd
commit 493482386e
7 changed files with 129 additions and 25 deletions

View file

@ -36,11 +36,6 @@ module.exports.search = function(query, type, next) {
}
module.exports.parseUrl = function(url, next) {
// https://play.spotify.com/album/3W3ENDBQMJ9bD2qmxWI2f0
// https://play.spotify.com/track/3W3ENDBQMJ9bD2qmxWI2f0
// https://open.spotify.com/album/3W3ENDBQMJ9bD2qmxWI2f0
// https://open.spotify.com/track/3W3ENDBQMJ9bD2qmxWI2f0
var matches = parse(url).path.match(/\/album[\/]+([^\/]+)/);
if (matches && matches[1]) {