Fix bug
This commit is contained in:
2
epub.py
2
epub.py
@@ -140,7 +140,7 @@ class HTMLImage:
|
|||||||
self.cfg = cfg
|
self.cfg = cfg
|
||||||
|
|
||||||
def is_valid(self):
|
def is_valid(self):
|
||||||
return self.src is not None
|
return self.src is not None and self.src != ''
|
||||||
|
|
||||||
def download_image(self):
|
def download_image(self):
|
||||||
if not self.is_valid():
|
if not self.is_valid():
|
||||||
|
|||||||
Reference in New Issue
Block a user