nicfit / eyeD3

eyeD3 is a Python module and command line program for processing ID3 tags. Information about mp3 files (i.e bit rate, sample frequency, play time, etc.) is also provided. The formats supported are ID3v1 (1.0/1.1) and ID3v2 (2.3/2.4).
http://eyed3.nicfit.net/
GNU General Public License v3.0
532 stars 58 forks source link

Some empty tags raise exception instead of returning None #541

Open optio50 opened 3 years ago

optio50 commented 3 years ago

I am new to using and programing in python so please excuse my ignorance. I am using the EyeD3 module as a MP3 Tag reader and all the tags I experience that are empty return "None" except a few that I have found. tag.artist_url & tag.comments

Edit: also have the same issue with genre.name non_std_genre.name genre.id non_std_genre.id

if these tags are requested but have no value they error out instead of returning "None"

I have to use try except on these individual tags

is this expected behavior?

nicfit commented 3 years ago

Can you provide the error messages, commands/code you are trying to execute?