parent
256d06bbcc
commit
e9652871c6
1 changed files with 13 additions and 23 deletions
|
@ -3187,30 +3187,20 @@ const app = new Vue({
|
||||||
let applied = 0;
|
let applied = 0;
|
||||||
|
|
||||||
for (let i = 1; applied < app.lyrics.length; i+=2) { // Start on odd elements because even ones are original.
|
for (let i = 1; applied < app.lyrics.length; i+=2) { // Start on odd elements because even ones are original.
|
||||||
try {
|
if (app.lyrics[applied].line === raw_lines[i].childNodes[0].childNodes[0].textContent) {
|
||||||
if (app.lyrics[applied].line.trim() != "" && raw_lines[i].childNodes[0].childNodes[0].textContent.trim() != ""){
|
// Do Nothing
|
||||||
if (app.lyrics[applied].line.trim() === raw_lines[i].childNodes[0].childNodes[0].textContent.trim()) {
|
applied +=1;
|
||||||
// Do Nothing and skip to next raw lyric.
|
}
|
||||||
applied +=1;
|
else {
|
||||||
}
|
if (app.lyrics[applied].line === "lrcInstrumental") {
|
||||||
else {
|
app.lyrics[applied+1].translation = raw_lines[i].childNodes[0].childNodes[0].textContent;
|
||||||
if (app.lyrics[applied].line === "lrcInstrumental") {
|
applied +=2;
|
||||||
if (app.lyrics[applied+1].line.trim() === raw_lines[i].childNodes[0].childNodes[0].textContent.trim()) {
|
|
||||||
// Do Nothing and skip to next raw lyric.
|
|
||||||
applied +=2;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
app.lyrics[applied+1].translation = raw_lines[i].childNodes[0].childNodes[0].textContent;
|
|
||||||
applied +=2;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
app.lyrics[applied].translation = raw_lines[i].childNodes[0].childNodes[0].textContent;
|
|
||||||
applied +=1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
} catch(e) {}
|
else {
|
||||||
|
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