Skip to content

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

@trydalch

Description

@trydalch

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```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions