mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
8569717d98
commit
09ae07631b
@ -309,7 +309,7 @@ class MetadataHeader(BookHeader):
|
|||||||
def identity(self):
|
def identity(self):
|
||||||
self.stream.seek(60)
|
self.stream.seek(60)
|
||||||
ident = self.stream.read(8).upper()
|
ident = self.stream.read(8).upper()
|
||||||
if ident not in ['BOOKMOBI', 'TEXTREAD']:
|
if ident not in [b'BOOKMOBI', b'TEXTREAD']:
|
||||||
raise MobiError('Unknown book type: %s' % ident)
|
raise MobiError('Unknown book type: %s' % ident)
|
||||||
return ident
|
return ident
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user