From a487219a4b0662a7ead660b11fb61cb10ad9cb2a Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 7 Apr 2009 20:34:02 -0700 Subject: [PATCH] IGN:... --- src/calibre/ebooks/mobi/reader.py | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/calibre/ebooks/mobi/reader.py b/src/calibre/ebooks/mobi/reader.py index a6632b81ca..79676c1d52 100644 --- a/src/calibre/ebooks/mobi/reader.py +++ b/src/calibre/ebooks/mobi/reader.py @@ -57,10 +57,11 @@ class EXTHHeader(object): elif id == 502: # last update time pass - elif id == 503 and (not title or title == _('Unknown')): - title = content - else: - print 'unknown record', id, repr(content) + elif id == 503: # Long title + if not title or title == _('Unknown'): + title = content + #else: + # print 'unknown record', id, repr(content) if title: self.mi.title = title @@ -85,8 +86,10 @@ class EXTHHeader(object): content, '%Y-%m-%d',).date() except: pass - else: - print 'unhandled metadata record', id, repr(content) + elif id == 108: + pass # Producer + #else: + # print 'unhandled metadata record', id, repr(content) class BookHeader(object):