aboutsummaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-05-15 22:51:33 +0200
committerdec05eba <dec05eba@protonmail.com>2021-05-15 22:51:33 +0200
commit2d36d7344a85d0895d0f8894a7412d10e5ff0c8a (patch)
tree83c839b599befac74585bc32ac1a5d2342517e65 /src/plugins
parent7760e319cbfea444792b4bc627f04bfbe286bbdf (diff)
Fix manganelo id for manga with <= 2 characters, force redraw manga image after 1 second
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/Manganelo.cpp2
1 files changed, 1 insertions, 1 deletions
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";