aboutsummaryrefslogtreecommitdiff
path: root/plugins/mangaplus.py
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-04-20 00:42:47 +0200
committerdec05eba <dec05eba@protonmail.com>2020-07-06 07:12:34 +0200
commit1294ab9559a872f5c66211190f7e4ef3f6709df1 (patch)
tree9837fd8e894b2c11af693482e144bdfb56b0ae16 /plugins/mangaplus.py
parentbdbf6b363c67992a82ea54fdd54474eaad39a3d8 (diff)
Fail manga download if no images are found for chapter
Diffstat (limited to 'plugins/mangaplus.py')
-rwxr-xr-xplugins/mangaplus.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/mangaplus.py b/plugins/mangaplus.py
index 3658770..01940ff 100755
--- a/plugins/mangaplus.py
+++ b/plugins/mangaplus.py
@@ -287,6 +287,10 @@ def download_chapter(url, download_dir):
download_file(page.page.image_url, page, image_path)
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")