default store.ts mxm trans to be disabled
This commit is contained in:
parent
2008fab842
commit
5d4369c843
2 changed files with 4 additions and 5 deletions
|
@ -245,7 +245,7 @@ export class Store {
|
|||
"lyrics": {
|
||||
"enable_mxm": true,
|
||||
"mxm_karaoke": false,
|
||||
"mxm_language": "en",
|
||||
"mxm_language": "disabled",
|
||||
"enable_qq": false,
|
||||
"enable_yt": false,
|
||||
},
|
||||
|
|
|
@ -3187,16 +3187,15 @@ const app = new Vue({
|
|||
let applied = 0;
|
||||
|
||||
for (let i = 1; applied < app.lyrics.length; i+=2) {
|
||||
console.log("i = " + i + '\n' + raw_lines[i].childNodes[0].childNodes[0])
|
||||
if (app.lyrics[applied].line === "lrcInstrumental") {
|
||||
app.lyrics[applied+1].translation = raw_lines[i].childNodes[0].childNodes[0].textContent.replace(/\s+/g,' ');
|
||||
app.lyrics[applied+1].translation = raw_lines[i].childNodes[0].childNodes[0].textContent;
|
||||
applied +=2;
|
||||
}
|
||||
else if (app.lyrics[applied].translation === raw_lines[i].childNodes[0].childNodes[0].textContent.replace(/\s+/g,' ')) {
|
||||
else if (app.lyrics[applied].translation === raw_lines[i].childNodes[0].childNodes[0].textContent) {
|
||||
// Do nothing
|
||||
}
|
||||
else {
|
||||
app.lyrics[applied].translation = raw_lines[i].childNodes[0].childNodes[0].textContent.replace(/\s+/g,' ');
|
||||
app.lyrics[applied].translation = raw_lines[i].childNodes[0].childNodes[0].textContent;
|
||||
applied +=1;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue