FB2 Output: Add image mimetype back and set to jpg because that is what is written.

This commit is contained in:
John Schember 2010-12-04 23:02:55 -05:00
parent 4d3e99af67
commit fcd87f216c

View File

@ -165,7 +165,7 @@ class FB2MLizer(object):
col = 1
col += 1
data += char
images.append('<binary id="%s">%s\n</binary>' % (self.image_hrefs[item.href], data))
images.append('<binary id="%s" content-type="image/jpeg">%s\n</binary>' % (self.image_hrefs[item.href], data))
except Exception as e:
self.log.error('Error: Could not include file %s because ' \
'%s.' % (item.href, e))