mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #7455 (Converting Mobipocket PRC to ePUB - missing pictures)
This commit is contained in:
parent
f135bdbff0
commit
bfdb4cf108
@ -569,6 +569,10 @@ class MobiReader(object):
|
||||
for attr in self.IMAGE_ATTRS:
|
||||
recindex = attrib.pop(attr, None) or recindex
|
||||
if recindex is not None:
|
||||
try:
|
||||
recindex = '%05d'%int(recindex)
|
||||
except:
|
||||
pass
|
||||
attrib['src'] = 'images/%s.jpg' % recindex
|
||||
for attr in ('width', 'height'):
|
||||
if attr in attrib:
|
||||
|
Loading…
x
Reference in New Issue
Block a user