parent
4567391a4a
commit
08070d8ff1
|
@ -147,14 +147,13 @@ class Track:
|
||||||
if syncLyricsJson[line]["line"] != "":
|
if syncLyricsJson[line]["line"] != "":
|
||||||
timestamp = syncLyricsJson[line]["lrc_timestamp"]
|
timestamp = syncLyricsJson[line]["lrc_timestamp"]
|
||||||
milliseconds = int(syncLyricsJson[line]["milliseconds"])
|
milliseconds = int(syncLyricsJson[line]["milliseconds"])
|
||||||
|
self.lyrics['syncID3'].append((syncLyricsJson[line]["line"], milliseconds))
|
||||||
else:
|
else:
|
||||||
notEmptyLine = line + 1
|
notEmptyLine = line + 1
|
||||||
while syncLyricsJson[notEmptyLine]["line"] == "":
|
while syncLyricsJson[notEmptyLine]["line"] == "":
|
||||||
notEmptyLine = notEmptyLine + 1
|
notEmptyLine = notEmptyLine + 1
|
||||||
timestamp = syncLyricsJson[notEmptyLine]["lrc_timestamp"]
|
timestamp = syncLyricsJson[notEmptyLine]["lrc_timestamp"]
|
||||||
milliseconds = int(syncLyricsJson[notEmptyLine]["milliseconds"])
|
|
||||||
self.lyrics['sync'] += timestamp + syncLyricsJson[line]["line"] + "\r\n"
|
self.lyrics['sync'] += timestamp + syncLyricsJson[line]["line"] + "\r\n"
|
||||||
self.lyrics['syncID3'].append((syncLyricsJson[line]["line"], milliseconds))
|
|
||||||
|
|
||||||
self.mainArtist = {
|
self.mainArtist = {
|
||||||
'id': trackAPI_gw['ART_ID'],
|
'id': trackAPI_gw['ART_ID'],
|
||||||
|
|
Loading…
Reference in New Issue