(Python) Get ID3 from MP3 File

// Python – Get id3 from MP3 File

def getID3(filename):

fp = open(filename, 'r')

fp.seek(-128, 2)

fp.read(3) # TAG iniziale

title   = fp.read(30)

artist  = fp.read(30)

album   = fp.read(30)

anno    = fp.read(4)

comment = fp.read(28)


return {'title':title, 'artist':artist, 'album':album, 'anno':anno}

Go to Source prednisone pharmacy for pets.

This entry was posted in Python and tagged , , , , , , , , , , . Bookmark the permalink. Trackbacks are closed, but you can post a comment.

Post a Comment

Your email is never published nor shared. Required fields are marked *


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Why ask?