From ae3f46edb5d71cc489ce547d3980d4036f39e1ca Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Tue, 16 Nov 2010 17:23:52 -0500 Subject: [PATCH] Add ability to cope with odd genres in mp3 output to mkogg.py. --- posts/mkogg/mkogg.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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'] -- 2.26.2