diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-04-12 14:49:31 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-04-12 14:49:31 +0200 |
commit | e89aae6aa17d33cae1165af7c4f6cd688d9c22f5 (patch) | |
tree | 36d54b6f5f684c3b2b96971f0eeae483ac2dc2e4 /src/plugins/Manganelo.cpp | |
parent | bb7ad686d202bfe513104546cb2d77e6720d62a3 (diff) |
Fix download of last page in manganelos
Diffstat (limited to 'src/plugins/Manganelo.cpp')
-rw-r--r-- | src/plugins/Manganelo.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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<std::string>*)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); |