diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-04-20 15:19:39 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-04-20 15:19:39 +0200 |
commit | 0c49bfeeefc0b63c2a486948460435c66a36faf9 (patch) | |
tree | 9e948df195802e95a5e49d4db4f02d953a41d247 /plugins/manganelos.py | |
parent | 43cd46e9e7040b4653340f91d3b190831103ca79 (diff) |
Add mangakatana.com
Diffstat (limited to 'plugins/manganelos.py')
-rwxr-xr-x | plugins/manganelos.py | 3 |
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) |