From 1294ab9559a872f5c66211190f7e4ef3f6709df1 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 20 Apr 2020 00:42:47 +0200 Subject: Fail manga download if no images are found for chapter --- plugins/manganelo.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'plugins/manganelo.py') 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") -- cgit v1.2.3