Add rdio support
This commit is contained in:
parent
aca2eea4dd
commit
493482386e
7 changed files with 129 additions and 25 deletions
|
@ -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]) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue