mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -04:00
Fix #2115 (Some Kindle Metadata Still Wrong)
This commit is contained in:
parent
03870b6a68
commit
c22ad7f26e
@ -9,6 +9,7 @@ import sys, struct, os, cStringIO, re, functools
|
||||
|
||||
try:
|
||||
from PIL import Image as PILImage
|
||||
PILImage
|
||||
except ImportError:
|
||||
import Image as PILImage
|
||||
|
||||
@ -50,6 +51,8 @@ class EXTHHeader(object):
|
||||
self.cover_offset = co
|
||||
elif id == 202:
|
||||
self.thumbnail_offset, = struct.unpack('>L', content)
|
||||
elif id == 503 and (not title or title == _('Unknown')):
|
||||
title = content
|
||||
#else:
|
||||
# print 'unknown record', id, repr(content)
|
||||
if title:
|
||||
|
Loading…
x
Reference in New Issue
Block a user