Skip to content

Commit

Permalink
use UnsynchronizedLyrics when ParseLRC error
Browse files Browse the repository at this point in the history
  • Loading branch information
j4587698 committed May 30, 2024
1 parent a000838 commit 3df65d8
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion ATL/Entities/TagData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,17 @@ public void IntegrateValue(Field key, string value)
case Field.LYRICS_UNSYNCH:
{
if (null == Lyrics) Lyrics = new LyricsInfo();
if (value.Contains("[0")) Lyrics.ParseLRC(value);
if (value.Contains("[0"))
{
try
{
Lyrics.ParseLRC(value);
}
catch (Exception e)
{
Lyrics.UnsynchronizedLyrics = value;
}
}
else Lyrics.UnsynchronizedLyrics = value;
break;
}
Expand Down

0 comments on commit 3df65d8

Please sign in to comment.