aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Mangatown.cpp
diff options
context:
space:
mode:
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);