def get_details(path):
audiofile = music_tag.load_file(path)
title = audiofile['title']
artist = audiofile['artist']
print(artist.values)
if str(artist) == "":
artist = str(audiofile['albumartist']) + " [Album Artist]"
return title, artist
This returns an empty value for the artist section despite the fact itunes definitely has a value there. Happens for all M4a files not sure why. But album artist works fine.
Hi,
This returns an empty value for the artist section despite the fact itunes definitely has a value there. Happens for all M4a files not sure why. But album artist works fine.