aboutsummaryrefslogtreecommitdiff
path: root/plugins/manganelos.py
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/manganelos.py')
-rwxr-xr-xplugins/manganelos.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/manganelos.py b/plugins/manganelos.py
index bb5be66..7e220d5 100755
--- a/plugins/manganelos.py
+++ b/plugins/manganelos.py
@@ -90,6 +90,9 @@ def download_chapter(url, download_dir):
for image_source_list in tree.xpath('//p[@id="arraydata"]/text()'):
image_source_list = image_source_list.strip()
for image_source in image_source_list.split(','):
+ image_source = image_source.strip()
+ if not image_source:
+ continue
ext = image_source[image_source.rfind("."):]
image_name = str(img_number) + ext
image_path = os.path.join(download_dir, image_name)