Fix Google Play Music and Spotify
This commit is contained in:
parent
688ec0f2f9
commit
6c29d50f1e
21 changed files with 566 additions and 559 deletions
|
@ -13,7 +13,8 @@ fs.readdirSync(path.join(__dirname, 'services')).forEach(function(file) {
|
|||
export default function* (url) {
|
||||
let matchedService;
|
||||
for (let service of services) {
|
||||
matchedService = yield service.match(url);
|
||||
console.log(service)
|
||||
matchedService = service.match(url);
|
||||
if (matchedService) {
|
||||
const result = yield service.parseUrl(url);
|
||||
return yield service.lookupId(result.id, result.type);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue