diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-04-20 00:42:47 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-06 07:12:34 +0200 |
commit | 1294ab9559a872f5c66211190f7e4ef3f6709df1 (patch) | |
tree | 9837fd8e894b2c11af693482e144bdfb56b0ae16 /plugins/manganelo.py | |
parent | bdbf6b363c67992a82ea54fdd54474eaad39a3d8 (diff) |
Fail manga download if no images are found for chapter
Diffstat (limited to 'plugins/manganelo.py')
-rwxr-xr-x | plugins/manganelo.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/manganelo.py b/plugins/manganelo.py index 352bb23..d8b5c9a 100755 --- a/plugins/manganelo.py +++ b/plugins/manganelo.py @@ -91,6 +91,10 @@ def download_chapter(url, download_dir): print("resource temporary unavailable: %s" % image_source) exit(2) img_number += 1 + + if img_number == 1: + print("Failed to find images for chapter") + exit(2) with open(os.path.join(download_dir, ".finished"), "w") as file: file.write("1") |