Skip to content

Commit

Permalink
fakesylt for new parser
Browse files Browse the repository at this point in the history
  • Loading branch information
nift4 committed Nov 7, 2024
1 parent bf92e00 commit 3f35440
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ object LrcUtils {
val plainTextData =
if (meta is VorbisComment && meta.key == "LYRICS") // ogg / flac
meta.value
else if (meta is BinaryFrame && meta.id == "USLT") // mp3 / other id3 based
UsltFrameDecoder.decode(ParsableByteArray(meta.data))
else if (meta is TextInformationFrame && meta.id == "USLT") // m4a
else if (meta is BinaryFrame && (meta.id == "USLT" || meta.id == "SYLT")) // mp3 / other id3 based
UsltFrameDecoder.decode(ParsableByteArray(meta.data)) // SYLT is also used to store lrc lyrics encoded in USLT format
else if (meta is TextInformationFrame && (meta.id == "USLT" || meta.id == "SYLT")) // m4a
meta.values.joinToString("\n")
else null
return plainTextData?.let { parseLyrics(it, parserOptions) } ?: continue
Expand Down

0 comments on commit 3f35440

Please sign in to comment.