Take the Album Artist into account for Artist data

This commit is contained in:
2017-04-20 01:04:55 +02:00
parent 92c4901992
commit 92982fb042

View File

@@ -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)