diff options
Diffstat (limited to 'plugins/lhtranslation.py')
-rwxr-xr-x | plugins/lhtranslation.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/lhtranslation.py b/plugins/lhtranslation.py index c86401e..e27faa9 100755 --- a/plugins/lhtranslation.py +++ b/plugins/lhtranslation.py @@ -87,6 +87,10 @@ def download_chapter(url, download_dir): download_file(image_source, 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") |