aboutsummaryrefslogtreecommitdiff
path: root/src/QuickMedia.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-12-02 01:28:33 +0100
committerdec05eba <dec05eba@protonmail.com>2020-12-02 01:28:33 +0100
commit091c181958d306d8decd1628473ebf4af6c2ada0 (patch)
treee26683f82cf98ba52df3a6d0f7d4119458ef86fe /src/QuickMedia.cpp
parentc13a28519a3409af8984c76f9297f100e6be818d (diff)
Do not cancel download of all images if one image fails to download for manga
Diffstat (limited to 'src/QuickMedia.cpp')
-rw-r--r--src/QuickMedia.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp
index 03a4d8a..da22d72 100644
--- a/src/QuickMedia.cpp
+++ b/src/QuickMedia.cpp
@@ -2106,15 +2106,15 @@ namespace QuickMedia {
image_content.clear();
if(download_to_string(new_url, image_content, extra_args, is_tor_enabled(), true) != DownloadResult::OK || image_content.size() <= 255) {
show_notification("QuickMedia", "Failed to download image: " + new_url, Urgency::CRITICAL);
- return false;
+ return true;
}
} else {
show_notification("QuickMedia", "Failed to download image: " + url, Urgency::CRITICAL);
- return false;
+ return true;
}
} else {
show_notification("QuickMedia", "Failed to download image: " + url, Urgency::CRITICAL);
- return false;
+ return true;
}
}
@@ -2122,7 +2122,7 @@ namespace QuickMedia {
if(file_overwrite(image_filepath_tmp, image_content) != 0) {
show_notification("QuickMedia", "Failed to save image to file: " + image_filepath_tmp.data, Urgency::CRITICAL);
- return false;
+ return true;
}
bool rename_immediately = true;
@@ -2158,7 +2158,7 @@ namespace QuickMedia {
if(rename(image_filepath_tmp.data.c_str(), image_filepath.data.c_str()) != 0) {
perror(image_filepath_tmp.data.c_str());
show_notification("QuickMedia", "Failed to save image to file: " + image_filepath.data, Urgency::CRITICAL);
- return false;
+ return true;
}
}