From e89aae6aa17d33cae1165af7c4f6cd688d9c22f5 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 12 Apr 2021 14:49:31 +0200 Subject: Fix download of last page in manganelos --- src/plugins/Mangatown.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/plugins/Mangatown.cpp') diff --git a/src/plugins/Mangatown.cpp b/src/plugins/Mangatown.cpp index b8547ce..04a1049 100644 --- a/src/plugins/Mangatown.cpp +++ b/src/plugins/Mangatown.cpp @@ -36,7 +36,7 @@ namespace QuickMedia { const char *title = quickmedia_html_node_get_attribute_value(node, "title"); if(href && title && strncmp(href, "/manga/", 7) == 0) { auto item = BodyItem::create(strip(title)); - item->url = mangatown_url + href; + item->url = mangatown_url + strip(href); item_data->push_back(std::move(item)); } }, &result_items); @@ -87,7 +87,7 @@ namespace QuickMedia { const char *text = quickmedia_html_node_get_text(node); if(href && text && strncmp(href, "/manga/", 7) == 0) { auto item = BodyItem::create(strip(text)); - item->url = mangatown_url + href; + item->url = mangatown_url + strip(href); item_data->push_back(std::move(item)); } }, &chapters_items); @@ -172,9 +172,9 @@ namespace QuickMedia { const char *src = quickmedia_html_node_get_attribute_value(node, "src"); if(src && strstr(src, "/store/manga/")) { if(strncmp(src, "//", 2) == 0) - *image_src = src + 2; + *image_src = strip(src + 2); else - *image_src = src; + *image_src = strip(src); } }, &image_src); -- cgit v1.2.3