aboutsummaryrefslogtreecommitdiff
path: root/plugins/mangakatana.py
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/mangakatana.py')
-rwxr-xr-xplugins/mangakatana.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/mangakatana.py b/plugins/mangakatana.py
index 02337d1..4686715 100755
--- a/plugins/mangakatana.py
+++ b/plugins/mangakatana.py
@@ -106,9 +106,11 @@ def download_chapter(url, download_dir):
image_path = os.path.join(download_dir, image_name)
print("Downloading {} to {}".format(image_source, image_path))
if not download_file(image_source, image_path):
- print("Failed to download image: %s" % image_source)
- os.remove(in_progress_filepath)
- exit(2)
+ image_source = image_source.replace("://i3", "://i2")
+ if not download_file(image_source, image_path):
+ print("Failed to download image: %s" % image_source)
+ os.remove(in_progress_filepath)
+ exit(2)
img_number += 1
if img_number == 1: