Fix kugou's negative timing removal
This commit is contained in:
parent
9549af2e9e
commit
9c01b5733b
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ from lyrics_dl.registry import lyrics_provider
|
||||||
KRC_ENCODE_KEY = [64, 71, 97, 119, 94, 50, 116, 71, 81, 54, 49, 45, 206, 210, 110, 105]
|
KRC_ENCODE_KEY = [64, 71, 97, 119, 94, 50, 116, 71, 81, 54, 49, 45, 206, 210, 110, 105]
|
||||||
|
|
||||||
RE_KRC_JUNK = re.compile(r"^\[((id|ar|ti|by|hash|al|sign|qq|total|language):|offset:0\]|.*\](<.*>)?(Written by:|Lyrics by:|Composed by:|Producer:|作曲 :|作词 :)).*$")
|
RE_KRC_JUNK = re.compile(r"^\[((id|ar|ti|by|hash|al|sign|qq|total|language):|offset:0\]|.*\](<.*>)?(Written by:|Lyrics by:|Composed by:|Producer:|作曲 :|作词 :)).*$")
|
||||||
RE_WORD_TIMING = re.compile(r"<\d+,\d+,\d+>")
|
RE_WORD_TIMING = re.compile(r"<-?\d+,-?\d+,-?\d+>")
|
||||||
|
|
||||||
|
|
||||||
def decode_krc(content: bytes) -> str:
|
def decode_krc(content: bytes) -> str:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue