mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2026-05-08 21:11:59 +02:00
Allow <img> tags without src attr in epub to update
This commit is contained in:
parent
b72ce6ecf3
commit
285459758d
1 changed files with 1 additions and 1 deletions
|
|
@ -129,7 +129,7 @@ def get_update_data(inputio,
|
|||
newsrc=''
|
||||
longdesc=''
|
||||
## skip <img src="data:image..."
|
||||
if not img['src'].startswith('data:image'):
|
||||
if 'src' in img 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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue