This commit is contained in:
vapormusic 2022-01-13 20:37:14 +07:00
commit fc0adabdc8
2 changed files with 2 additions and 1 deletions

View file

@ -2571,6 +2571,7 @@ const app = new Vue({
if (type.slice(-1) != "s") { if (type.slice(-1) != "s") {
type += "s" type += "s"
} }
type = type.replace("library-", "")
let id = item.attributes.playParams.catalogId ?? item.id let id = item.attributes.playParams.catalogId ?? item.id
let index = types.findIndex(function (type) { let index = types.findIndex(function (type) {

View file

@ -101,7 +101,7 @@
methods: { methods: {
async checkLibrary() { async checkLibrary() {
if(this.addedToLibrary) {return this.addedToLibrary} if(this.addedToLibrary) {return this.addedToLibrary}
if(this.item.type.includes("library-") || this.item.type.includes("station")) { if(this.item.type.includes("library-playlists") || this.item.type.includes("station")) {
this.addedToLibrary = true this.addedToLibrary = true
return return
} }