From 92982fb0426af892c8bdfe4f84d7379f0e327154 Mon Sep 17 00:00:00 2001 From: "Maxence G. de Montauzan" Date: Thu, 20 Apr 2017 01:04:55 +0200 Subject: [PATCH] Take the Album Artist into account for Artist data --- iTunesParser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iTunesParser.py b/iTunesParser.py index 72f1f1d..af9def9 100644 --- a/iTunesParser.py +++ b/iTunesParser.py @@ -131,10 +131,10 @@ class ITunesParser: Process artists in the track part of library and return a JSON formated for a bulk ELS request """ - if 'Artist' not in track: + if 'Album Artist' not in track and 'Artist' not in track: return - akey = track['Artist'] + akey = track['Album Artist'] if 'Album Artist' in track else track['Artist'] # Add artist if akey not in self._artists: a_id = self.calc_id(akey)