mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix extraction of images from some MOBI files
This commit is contained in:
parent
a2a2ad3ef1
commit
5d156e7d83
@ -391,7 +391,9 @@ class MobiReader(object):
|
||||
|
||||
def fix_images(match):
|
||||
tag = match.group()
|
||||
for pat in (r'\shirecindex=[\'"](\d+)[\'"]', '\srecindex=[\'"](\d+)[\'"]', '\slorecindex=[\'"](\d+)[\'"]'):
|
||||
for pat in (r'\shirecindex=[\'"]{0,1}(\d+)[\'"]{0,1}',
|
||||
'\srecindex=[\'"]{0,1}(\d+)[\'"]{0,1}',
|
||||
'\slorecindex=[\'"]{0,1}(\d+)[\'"]{0,1}'):
|
||||
pat = re.compile(pat)
|
||||
m = pat.search(tag)
|
||||
if m:
|
||||
|
Loading…
x
Reference in New Issue
Block a user