Remove empty line for last lyric of a song (#644)
This commit is contained in:
parent
4b6c3379d9
commit
14fdddfa7b
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user