mirror of
https://github.com/glomatico/gamdl.git
synced 2025-01-22 11:18:39 +00:00
add additional lyrics presence check
This commit is contained in:
parent
94cdba313c
commit
ccef00e39f
@ -184,7 +184,9 @@ class DownloaderSong:
|
||||
track_metadata = self.downloader.apple_music_api.get_song(
|
||||
track_metadata["id"]
|
||||
)
|
||||
if track_metadata["relationships"]["lyrics"]["data"]:
|
||||
if track_metadata["relationships"]["lyrics"]["data"] and track_metadata[
|
||||
"relationships"
|
||||
]["lyrics"]["data"][0].get("attributes"):
|
||||
return self._get_lyrics(
|
||||
track_metadata["relationships"]["lyrics"]["data"][0]["attributes"][
|
||||
"ttml"
|
||||
|
Loading…
Reference in New Issue
Block a user