1
0
mirror of synced 2024-11-12 01:50:47 +01:00

Remove empty line for last lyric of a song (#644)

This commit is contained in:
Ashiro12138 2024-07-08 18:14:53 +10:00 committed by GitHub
parent 4b6c3379d9
commit 14fdddfa7b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -400,7 +400,11 @@ namespace TJAPlayer3
}
}
}
if (lyricData.Count > 0) { lrclist.Add(CreateLyric(lyricData, order)); }
// Add last lyric to list
if (lyricData.Count > 0) {
lyricData.RemoveAll(empty => String.IsNullOrEmpty(empty.Text));
lrclist.Add(CreateLyric(lyricData, order));
}
lrclist.Add(CreateLyric(new List<LyricData>() { new LyricData() { timestamp = endTime + offset } }, order));
return lrclist;