From 217101c7a79dccf8617a7d3251d4b06bc7cb5905 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 5 May 2020 21:49:12 +0200 Subject: Clear image url cache if failed to retrieve chapter images --- src/plugins/Manganelo.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/plugins') 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; } -- cgit v1.2.3