| Home | Trees | Index | Help |
|---|
| Package tagger :: Module id3v1 :: Class ID3v1 |
|
ID3v1 Class
This class parses and writes ID3v1 tags using a very simplified interface.
You can access the ID3v1 tag variables by directly accessing the object attributes. For example:
id3v1 = ID3v1('some.mp3') id3v1.track = 1 print id3v1.songname del id3v1| Method Summary | |
|---|---|
constructor | |
__del__(self)
| |
__getattr__(self,
name)
| |
parse(self)
| |
Seek to the ID3v1 tag | |
unpad(self,
field)
| |
| Instance Variable Summary | |
|---|---|
| string | album: the album name in iso8859-1 |
| string | artist: the artist name in iso8859-1 |
| string | comment: comment string. |
| int | genre: genre number |
| string | songname: the songname in iso8859-1 |
| int | track: track number |
| string | year: the year of the track |
| Class Variable Summary | |
|---|---|
NoneType |
_f = None |
| Method Details |
|---|
__init__(self,
filename,
mode=0)
|
seek_to_id3v1(self)Seek to the ID3v1 tag |
| Instance Variable Details |
|---|
albumthe album name in iso8859-1
|
artistthe artist name in iso8859-1
|
commentcomment string. limited to 28 characters
|
genregenre number
|
songnamethe songname in iso8859-1
|
tracktrack number
|
yearthe year of the track
|
| Class Variable Details |
|---|
_f
|
| Home | Trees | Index | Help |
|---|
| Generated by Epydoc 2.0 on Sun Apr 10 14:44:01 2005 | http://epydoc.sf.net |