diff options
Diffstat (limited to 'plugins/mangawindow.py')
-rwxr-xr-x | plugins/mangawindow.py | 4 |
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") |