Return to Snippet

Revision: 1801
at November 10, 2006 00:03 by whitetiger


Updated Code
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)

    fp.close()

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

Revision: 1800
at November 9, 2006 23:55 by whitetiger


Initial Code
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)

    fp.close()

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

Initial URL

                                

Initial Description

                                

Initial Title
Python - Get id3 from MP3 File

Initial Tags
database, sql, python

Initial Language
Python