Example #1
0
 def __parse_genre(self, atom, data):
     # Translate to a freeform genre.
     genre = cdata.short_be(data[16:18])
     if "\xa9gen" not in self:
         try: self["\xa9gen"] = GENRES[genre - 1]
         except IndexError: pass
Example #2
0
 def __parse_tempo(self, atom, data):
     self[atom.name] = cdata.short_be(data[16:18])