Create new ID3 tag using python and eyed3

后端 未结 1 641
天涯浪人
天涯浪人 2021-01-18 01:37

I have a bunch of mp3 files that have no ID3 tag at all. I am trying to use eyed3 to add an ID3 tag to the files, but cannot figure out what method to use. Here is my code:<

相关标签:
1条回答
  • 2021-01-18 02:09

    You need to run initTag first to initialize the tag:

    import eyed3
    
    file = eyed3.load("test.mp3")
    file.initTag()
    file.tag.artist = u"MP3 Artist"
    
    0 讨论(0)
提交回复
热议问题