aboutsummaryrefslogtreecommitdiff
path: root/plugins/mangawindow.py
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/mangawindow.py')
-rwxr-xr-xplugins/mangawindow.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/mangawindow.py b/plugins/mangawindow.py
index 10f0f88..0b63c2d 100755
--- a/plugins/mangawindow.py
+++ b/plugins/mangawindow.py
@@ -92,6 +92,10 @@ def download_chapter(url, download_dir):
download_file(image_url, 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")