KristoforMaynard / music-tag

Simple interface to edit audio file metadata
MIT License
125 stars 19 forks source link

M4a artist being empty despite fact value is not empty #9

Closed danthp4 closed 1 year ago

danthp4 commented 3 years ago

Hi,

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.

KristoforMaynard commented 3 years ago

I can't replicate this issue. Could you provide an example of how to prepare a file like the ones that are giving you trouble?