Remove trailing spaces in synced lyrics lines without text

This commit is contained in:
Šarūnas Nejus 2024-10-23 15:37:41 +01:00
parent 618c3a21a6
commit 33aafdd50b
No known key found for this signature in database
GPG key ID: DD28F6704DBE3435

View file

@ -348,7 +348,10 @@ class LRCLyrics:
if self.instrumental:
return INSTRUMENTAL_LYRICS
return self.synced if want_synced and self.synced else self.plain
if want_synced and self.synced:
return "\n".join(map(str.strip, self.synced.splitlines()))
return self.plain
class LRCLib(Backend):