Fix finding imgs in existing epubs. Closes #608

This commit is contained in:
Jim Miller 2020-12-13 11:00:02 -06:00
parent 9da3746b9c
commit 2ee0ada0d1

View file

@ -129,7 +129,7 @@ def get_update_data(inputio,
newsrc=''
longdesc=''
## skip <img src="data:image..."
if 'src' in img and not img['src'].startswith('data:image'):
if img.has_attr('src') and not img['src'].startswith('data:image'):
try:
newsrc=get_path_part(href)+img['src']
# remove all .. and the path part above it, if present.