use openAppleMusicURL instead on url

This commit is contained in:
vapormusic 2022-01-28 10:42:22 +07:00
parent ea1e4cb2da
commit e4f6942f10
2 changed files with 217 additions and 212 deletions

View file

@ -686,12 +686,7 @@ const app = new Vue({
app.mk.play()
})
} else {
let data = MusicKit.formattedMediaURL(id);
if (data != null && data.contentId != null && data.kind != null){
self.mk.setQueue({[data.kind]: data.contentId}).then(() => {
app.mk.play()
})
}
app.openAppleMusicURL(id)
}
});