From 33aafdd50b3fb769ee38e7397661f62b79c3c36b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0ar=C5=ABnas=20Nejus?= Date: Wed, 23 Oct 2024 15:37:41 +0100 Subject: [PATCH] Remove trailing spaces in synced lyrics lines without text --- beetsplug/lyrics.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/beetsplug/lyrics.py b/beetsplug/lyrics.py index 764c8b857..159518281 100644 --- a/beetsplug/lyrics.py +++ b/beetsplug/lyrics.py @@ -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):