From 3539111ce536290b022836c7474540c00862788a Mon Sep 17 00:00:00 2001 From: RemixDev Date: Sun, 31 May 2020 14:20:06 +0200 Subject: [PATCH] Fix album title inconsistencies This fixes #8 --- deemix/app/downloader.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deemix/app/downloader.py b/deemix/app/downloader.py index 09304b0..b3850de 100644 --- a/deemix/app/downloader.py +++ b/deemix/app/downloader.py @@ -256,6 +256,7 @@ def getTrackData(dz, trackAPI_gw, trackAPI=None, albumAPI_gw=None, albumAPI=None if not albumAPI: logger.info(f"[{track['mainArtist']['name']} - {track['title']}] Getting album infos") albumAPI = dz.get_album(track['album']['id']) + track['album']['title'] = albumAPI['title'] track['album']['mainArtist'] = { 'id': albumAPI['artist']['id'], 'name': albumAPI['artist']['name'], @@ -292,6 +293,7 @@ def getTrackData(dz, trackAPI_gw, trackAPI=None, albumAPI_gw=None, albumAPI=None if not albumAPI_gw: logger.info(f"[{track['mainArtist']['name']} - {track['title']}] Getting more album infos") albumAPI_gw = dz.get_album_gw(track['album']['id']) + track['album']['title'] = get_album_gw['ALB_TITLE'] track['album']['mainArtist'] = { 'id': albumAPI_gw['ART_ID'], 'name': albumAPI_gw['ART_NAME']