aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Mangatown.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-04-12 14:49:31 +0200
committerdec05eba <dec05eba@protonmail.com>2021-04-12 14:49:31 +0200
commite89aae6aa17d33cae1165af7c4f6cd688d9c22f5 (patch)
tree36d54b6f5f684c3b2b96971f0eeae483ac2dc2e4 /src/plugins/Mangatown.cpp
parentbb7ad686d202bfe513104546cb2d77e6720d62a3 (diff)
Fix download of last page in manganelos
Diffstat (limited to 'src/plugins/Mangatown.cpp')
-rw-r--r--src/plugins/Mangatown.cpp8
1 files changed, 4 insertions, 4 deletions
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);