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
536 stars 58 forks source link

'NoneType' object has no attribute 'tag' #505

Closed nimiology closed 3 years ago

nimiology commented 3 years ago

hi I want to use this script but I get this error: "'NoneType' object has no attribute 'tag'"

from mutagen.easyid3 import EasyID3
import eyed3.id3
import eyed3

audiofile = eyed3.load("song.mp3")
audiofile.tag.artist = "Token Entry"
audiofile.tag.album = "Free For All Comp LP"
audiofile.tag.album_artist = "Various Artists"
audiofile.tag.title = "The Edge"
audiofile.tag.track_num = 3

audiofile.tag.save()