Author: dmeyer
Date: Sat Jun 16 16:22:55 2007
New Revision: 2710
Modified:
trunk/metadata/src/audio/mp3.py
trunk/metadata/src/video/mkv.py
Log:
add more tags and fix value setting (patch by orbit7)
Modified: trunk/metadata/src/audio/mp3.py
==============================================================================
--- trunk/metadata/src/audio/mp3.py (original)
+++ trunk/metadata/src/audio/mp3.py Sat Jun 16 16:22:55 2007
@@ -66,7 +66,8 @@
"TPE1": "artist",
"TPE2": "artist",
"TRCK": "trackno",
- "TPOS": "discs"}
+ "TPOS": "discs",
+ "TPUB": "publisher"}
_bitrates = [
[ # MPEG-2 & 2.5
@@ -162,7 +163,7 @@
for k, var in MP3_INFO_TABLE.items():
if id3.tag.frames[k]:
- setattr(self, var, id3.tag.frames[k][0].text)
+ self._set(var,id3.tag.frames[k][0].text)
if id3.tag.frames['APIC']:
pic = id3.tag.frames['APIC'][0]
if pic.imageData:
@@ -174,7 +175,9 @@
if f.__class__ is eyeD3_frames.TextFrame:
tab[f.header.id] = f.text
elif f.__class__ is eyeD3_frames.UserTextFrame:
- tab[f.header.id] = f.text
+ #userTextFrames : debug: id starts with _
+ self._set('_'+f.description,f.text)
+ tab['_'+f.description] = f.text
elif f.__class__ is eyeD3_frames.DateFrame:
tab[f.header.id] = f.date_str
elif f.__class__ is eyeD3_frames.CommentFrame:
Modified: trunk/metadata/src/video/mkv.py
==============================================================================
--- trunk/metadata/src/video/mkv.py (original)
+++ trunk/metadata/src/video/mkv.py Sat Jun 16 16:22:55 2007
@@ -371,6 +371,7 @@
if seek_elem.get_id() != MATROSKA_SEEK_ID:
continue
for sub_elem in self.process_one_level(seek_elem):
+ print 'xx', hex(sub_elem.get_id()), hex(sub_elem.get_value())
if sub_elem.get_id() == MATROSKA_SEEKID_ID:
if sub_elem.get_value() == MATROSKA_CLUSTER_ID:
# Not interested in these.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog