|
|
@@ -28,6 +28,7 @@ export class LyricParser implements IParser {
|
|
|
let album = ""
|
|
|
let by = ""
|
|
|
let offset = 0
|
|
|
+ const ignoredTags = [ 'hash', 'sign', 'qq', 'total']; // 定义需要忽略的标签
|
|
|
for (let i = 0; i < src.length; i++) {
|
|
|
let line = src[i]
|
|
|
console.info(`content The line of file:line ${line}`);
|
|
|
@@ -36,6 +37,12 @@ export class LyricParser implements IParser {
|
|
|
printW("the lyric line is empty, carriage return or line feed, line index= " + i)
|
|
|
continue
|
|
|
}
|
|
|
+ // 检查是否是需要忽略的标签
|
|
|
+ const shouldIgnore = ignoredTags.some(tag => line.indexOf(tag) > 0);
|
|
|
+ if (shouldIgnore) {
|
|
|
+ printW(`the lyric line contains ignored tag, line index= ${i}`);
|
|
|
+ continue;
|
|
|
+ }
|
|
|
if (line.indexOf("ti") > 0) {
|
|
|
title = this.parseIdTag(line)
|
|
|
} else if (line.indexOf("ar") > 0) {
|