From 08070d8ff11e4eafe0437e1a36fea13fad954f20 Mon Sep 17 00:00:00 2001 From: RemixDev Date: Thu, 15 Oct 2020 12:01:14 +0200 Subject: [PATCH] Removed blank lines from SYLT tag Fixes #77 --- deemix/app/track.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/deemix/app/track.py b/deemix/app/track.py index f82b021..7d4d37c 100644 --- a/deemix/app/track.py +++ b/deemix/app/track.py @@ -147,14 +147,13 @@ class Track: if syncLyricsJson[line]["line"] != "": timestamp = syncLyricsJson[line]["lrc_timestamp"] milliseconds = int(syncLyricsJson[line]["milliseconds"]) + self.lyrics['syncID3'].append((syncLyricsJson[line]["line"], milliseconds)) else: notEmptyLine = line + 1 while syncLyricsJson[notEmptyLine]["line"] == "": notEmptyLine = notEmptyLine + 1 timestamp = syncLyricsJson[notEmptyLine]["lrc_timestamp"] - milliseconds = int(syncLyricsJson[notEmptyLine]["milliseconds"]) self.lyrics['sync'] += timestamp + syncLyricsJson[line]["line"] + "\r\n" - self.lyrics['syncID3'].append((syncLyricsJson[line]["line"], milliseconds)) self.mainArtist = { 'id': trackAPI_gw['ART_ID'],