How to set: “artist”, “album artist”, “year”, “album”, “song number” and “title” fields of the tag, with mutagen
问题 I'm trying to use mutagen (with Python 2.7.5) to create a program that, given that the path to songs is ...\Artist\Year Album\Songnumber Title.mp3 , sets the artist, album artist, year, album, song number and title tags of the song, and preserves the genre tag. I tried to do this with EasyID3, but it doesn't have the album artist tag. I also tried to do it with regular ID3, but I ran into a couple of problems with it. Here's the code I used: from mutagen.id3 import ID3, TIT2, TPE2, TALB, TPE1