artcom-net / mp3-tagger

ID3 data editor
MIT License
35 stars 16 forks source link

Genre value for ID3TagV1 must be int when the current value is already a string #9

Open trydalch opened 4 years ago

trydalch commented 4 years ago

Attempting to change the genre value results in two bugs. This is bug 1 of 2.

Even though the current tag value for genre is a string, the MP3File object doesn't allow assigning a string value to the genre tag. Spits out this error:


    mp3.genre = genre
  File "C:\Users\**\Programs\Python\Python38-32\lib\site-packages\mp3_tagger\mp3.py", line 46, in wrapper
    tag.value = val
  File "C:\Users\**\Programs\Python\Python38-32\lib\site-packages\mp3_tagger\id3.py", line 90, in value
    raise TagSetError('Genre value for ID3TagV1 must be int')
mp3_tagger.exceptions.TagSetError: Genre value for ID3TagV1 must be int```