From 2d36d7344a85d0895d0f8894a7412d10e5ff0c8a Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 15 May 2021 22:51:33 +0200 Subject: Fix manganelo id for manga with <= 2 characters, force redraw manga image after 1 second --- src/plugins/Manganelo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins') diff --git a/src/plugins/Manganelo.cpp b/src/plugins/Manganelo.cpp index 960caaf..5e53451 100644 --- a/src/plugins/Manganelo.cpp +++ b/src/plugins/Manganelo.cpp @@ -163,7 +163,7 @@ namespace QuickMedia { } manga_id = url.substr(index + 6); - if(manga_id.size() <= 2) { + if(manga_id.empty()) { std::string err_msg = "Url "; err_msg += url; err_msg += " doesn't contain manga id"; -- cgit v1.2.3