pretty usable ngl

This commit is contained in:
vapormusic 2021-12-06 22:55:15 +07:00
parent 4eece88979
commit 5c94430d20
3 changed files with 30 additions and 13 deletions

View file

@ -253,10 +253,12 @@ const app = new Vue({
let id = item.attributes.playParams.id ?? item.id;
let isLibrary = item.attributes.playParams.isLibrary ?? false;
console.log(kind, id, isLibrary)
if(kind.toString() !== "radioStation")
if(!kind.toString().includes("radioStation") && !kind.toString().includes("song"))
{app.page = (kind) + "_"+ (id);
console.log("oks");
app.getTypeFromID((kind),(id), (isLibrary));}
app.getTypeFromID((kind),(id), (isLibrary));} else {
app.playMediaItemById((kind),(id), (isLibrary), item.attributes.url ?? '')
}
},
async getTypeFromID(kind,id, isLibrary = false){