aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-05-05 21:49:12 +0200
committerdec05eba <dec05eba@protonmail.com>2020-05-05 21:49:12 +0200
commit217101c7a79dccf8617a7d3251d4b06bc7cb5905 (patch)
tree211fa6c8dcb8633aade2219c97f87777da49aa16 /src
parent737263bc5a123bee889530a2623dfbeb90ee30e9 (diff)
Clear image url cache if failed to retrieve chapter images
Diffstat (limited to 'src')
-rw-r--r--src/plugins/Manganelo.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/Manganelo.cpp b/src/plugins/Manganelo.cpp
index 425bf4d..a97f75a 100644
--- a/src/plugins/Manganelo.cpp
+++ b/src/plugins/Manganelo.cpp
@@ -135,8 +135,10 @@ namespace QuickMedia {
quickmedia_html_search_deinit(&html_search);
if(result == 0)
last_chapter_url = url;
- if(last_chapter_image_urls.empty())
+ if(last_chapter_image_urls.empty()) {
+ last_chapter_url.clear();
return ImageResult::ERR;
+ }
return result == 0 ? ImageResult::OK : ImageResult::ERR;
}