chore: Prettified Code
[ci skip]
This commit is contained in:
parent
9622814ebf
commit
8ef7067232
1 changed files with 13 additions and 9 deletions
|
@ -3268,8 +3268,10 @@ const app = new Vue({
|
||||||
} else {
|
} else {
|
||||||
// only load MXM lyrics if AM lyrics failed to load
|
// only load MXM lyrics if AM lyrics failed to load
|
||||||
if (app.cfg.lyrics.enable_mxm) {
|
if (app.cfg.lyrics.enable_mxm) {
|
||||||
this.loadMXM();} else {
|
this.loadMXM();
|
||||||
this.loadAMLyrics();}
|
} else {
|
||||||
|
this.loadAMLyrics();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async loadAMLyrics() {
|
async loadAMLyrics() {
|
||||||
|
@ -3282,15 +3284,17 @@ const app = new Vue({
|
||||||
this.parseTTML();
|
this.parseTTML();
|
||||||
} catch (_) {
|
} catch (_) {
|
||||||
if (app.cfg.lyrics.enable_mxm) {
|
if (app.cfg.lyrics.enable_mxm) {
|
||||||
this.loadQQLyrics()
|
this.loadQQLyrics();
|
||||||
} else {
|
} else {
|
||||||
this.loadMXM();}
|
this.loadMXM();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (app.cfg.lyrics.enable_mxm) {
|
if (app.cfg.lyrics.enable_mxm) {
|
||||||
this.loadQQLyrics() // since mxm is already prioritized, we can just load qq lyrics if am fails
|
this.loadQQLyrics(); // since mxm is already prioritized, we can just load qq lyrics if am fails
|
||||||
} else {
|
} else {
|
||||||
this.loadMXM();}
|
this.loadMXM();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
addToLibrary(id) {
|
addToLibrary(id) {
|
||||||
|
@ -3423,7 +3427,7 @@ const app = new Vue({
|
||||||
}
|
}
|
||||||
|
|
||||||
if (lrcfile === "") {
|
if (lrcfile === "") {
|
||||||
app.loadAMLyrics()
|
app.loadAMLyrics();
|
||||||
} else {
|
} else {
|
||||||
if (richsync == [] || richsync.length == 0) {
|
if (richsync == [] || richsync.length == 0) {
|
||||||
console.log("musixmatch worki");
|
console.log("musixmatch worki");
|
||||||
|
@ -3475,12 +3479,12 @@ const app = new Vue({
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log(e);
|
console.log(e);
|
||||||
app.loadAMLyrics()
|
app.loadAMLyrics();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(e);
|
console.error(e);
|
||||||
app.loadAMLyrics()
|
app.loadAMLyrics();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
req.onerror = function () {
|
req.onerror = function () {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue