From 091c181958d306d8decd1628473ebf4af6c2ada0 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 2 Dec 2020 01:28:33 +0100 Subject: Do not cancel download of all images if one image fails to download for manga --- src/QuickMedia.cpp | 10 +++++----- 1 file 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; } } -- cgit v1.2.3