[Pythonmac-SIG] Dive Into Python example fileinfo on Mac

Arthur Clemens arthur at visiblearea.com
Tue Sep 28 16:10:39 CEST 2004


I am going through this excellent tutorial, and now I find that 
fileinfo.py does not do what it should do. Only the file name is 
returned, not the mp3 tags data.
I wonder if this has to do with big-endion / little-endian?

I suspect that this piece of code does not work well:

class MP3FileInfo(FileInfo):
	"store ID3v1.0 MP3 tags"
	tagDataMap = {"title"	: (	 3,	 33, stripnulls),
		"artist"  : ( 33,  63, stripnulls),
		"album"	  : ( 63,  93, stripnulls),
		"year"	  : ( 93,  97, stripnulls),
		"comment" : ( 97, 126, stripnulls),
		"genre"	  : (127, 128, ord)}

Can anyone confirm this, or give me another hint?

Arthur
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 1001 bytes
Desc: not available
Url : http://mail.python.org/pipermail/pythonmac-sig/attachments/20040928/85935b9d/attachment.bin


More information about the Pythonmac-SIG mailing list