From 0c49bfeeefc0b63c2a486948460435c66a36faf9 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 20 Apr 2021 15:19:39 +0200 Subject: Add mangakatana.com --- plugins/manganelos.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugins/manganelos.py') 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) -- cgit v1.2.3