From: W. Trevor King Date: Tue, 16 Nov 2010 22:23:52 +0000 (-0500) Subject: Add ability to cope with odd genres in mp3 output to mkogg.py. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ae3f46edb5d71cc489ce547d3980d4036f39e1ca;p=mw2txt.git Add ability to cope with odd genres in mp3 output to mkogg.py. --- diff --git a/posts/mkogg/mkogg.py b/posts/mkogg/mkogg.py index dbe620d..dd8c9f6 100755 --- a/posts/mkogg/mkogg.py +++ b/posts/mkogg/mkogg.py @@ -373,7 +373,8 @@ class Converter (object): num,name = [x.strip() for x in line.split(':', 1)] genres[name.lower()] = num self._id3v1_genres = genres - num = self._id3v1_genres[genre.lower()] + # Genre 12 = "Other" + num = self._id3v1_genres.get(genre.lower(), '12') args.extend(['--genre', num]) if 'tracknumber' in metadata: track = metadata['tracknumber']