From d4f7ba445644d460f02fd34848656e4c807ae5a6 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 15 Mar 2012 11:02:47 +0530 Subject: [PATCH] ... --- src/calibre/ebooks/mobi/reader/mobi6.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/calibre/ebooks/mobi/reader/mobi6.py b/src/calibre/ebooks/mobi/reader/mobi6.py index 94675dc893..962c38a0ba 100644 --- a/src/calibre/ebooks/mobi/reader/mobi6.py +++ b/src/calibre/ebooks/mobi/reader/mobi6.py @@ -105,10 +105,9 @@ class MobiReader(object): user_encoding, self.log, try_extra_data_fix=try_extra_data_fix) self.name = self.name.decode(self.book_header.codec, 'replace') self.kf8_type = None - is_kf8 = self.book_header.mobi_version == 8 k8i = getattr(self.book_header.exth, 'kf8_header', None) - if is_kf8: + if self.book_header.mobi_version == 8: self.kf8_type = 'standalone' elif k8i is not None: # Check for joint mobi 6 and kf 8 file try: