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/Manganelo.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/plugins/Manganelo.cpp') diff --git a/src/plugins/Manganelo.cpp b/src/plugins/Manganelo.cpp index 6b526d4..8ce9e01 100644 --- a/src/plugins/Manganelo.cpp +++ b/src/plugins/Manganelo.cpp @@ -45,7 +45,7 @@ namespace QuickMedia { const char *text = quickmedia_html_node_get_text(node); if(href && text) { auto item = BodyItem::create(strip(text)); - item->url = href; + item->url = strip(href); item_data->push_back(std::move(item)); } }, &chapters_items); @@ -74,7 +74,7 @@ namespace QuickMedia { if(href && text && strstr(href, "/author/story/")) { Creator creator; creator.name = strip(text); - creator.url = href; + creator.url = strip(href); creators->push_back(std::move(creator)); } }, &creators); @@ -195,7 +195,7 @@ namespace QuickMedia { const char *title = quickmedia_html_node_get_attribute_value(node, "title"); if(href && title && strstr(href, "/manga/")) { auto body_item = BodyItem::create(title); - body_item->url = href; + body_item->url = strip(href); item_data->push_back(std::move(body_item)); } }, &result_items); @@ -270,7 +270,7 @@ namespace QuickMedia { auto *urls = (std::vector*)userdata; const char *src = quickmedia_html_node_get_attribute_value(node, "src"); if(src) { - std::string image_url = src; + std::string image_url = strip(src); urls->push_back(std::move(image_url)); } }, &chapter_image_urls); -- cgit v1.2.3