From 8959a8c9400ec1a3d3ff54272d2f4d677ffd383e Mon Sep 17 00:00:00 2001 From: RemixDev Date: Tue, 2 Jun 2020 12:23:34 +0200 Subject: [PATCH] Fixed issue with spotify metadata conversion --- deemix/app/spotify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deemix/app/spotify.py b/deemix/app/spotify.py index 9ebcb50..76dd0ed 100644 --- a/deemix/app/spotify.py +++ b/deemix/app/spotify.py @@ -123,7 +123,7 @@ class SpotifyHelper: if 'external_ids' in spotify_track and 'isrc' in spotify_track['external_ids']: try: dz_track = dz.get_track_by_ISRC(spotify_track['external_ids']['isrc']) - dz_track = dz_track['id'] if 'id' in dz_track else 0 + dz_track = dz_track['id'] if 'id' in dz_track and 'title' in dz_track else 0 except: dz_track = dz.get_track_from_metadata(spotify_track['artists'][0]['name'], spotify_track['name'], spotify_track['album']['name']) if fallbackSearch else 0