diff options
Diffstat (limited to 'plugins/mangadex.py')
-rwxr-xr-x | plugins/mangadex.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/mangadex.py b/plugins/mangadex.py index a1e004b..292db35 100755 --- a/plugins/mangadex.py +++ b/plugins/mangadex.py @@ -128,6 +128,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") |