aboutsummaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2019-12-22 02:57:30 +0100
committerdec05eba <dec05eba@protonmail.com>2019-12-22 02:57:30 +0100
commit6d4fba24f82ddc8c96f9296bc1319826c29e1e34 (patch)
tree63d79fb0300abcf50f436fbf74749fb6e409e9d9 /src/plugins
parent5a8f12a1b229cc184eb5ef283830d9c33bcf2b00 (diff)
Fix manganelo not showing any pages
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/Manganelo.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/Manganelo.cpp b/src/plugins/Manganelo.cpp
index 5224ada..2b69e62 100644
--- a/src/plugins/Manganelo.cpp
+++ b/src/plugins/Manganelo.cpp
@@ -13,7 +13,7 @@ namespace QuickMedia {
if(result != 0)
goto cleanup;
- result = quickmedia_html_find_nodes_xpath(&html_search, "//div[class='chapter-list']/div[class='row']//a",
+ result = quickmedia_html_find_nodes_xpath(&html_search, "//ul[class='row-content-chapter']//a",
[](QuickMediaHtmlNode *node, void *userdata) {
auto *item_data = (BodyItems*)userdata;
const char *href = quickmedia_html_node_get_attribute_value(node, "href");
@@ -119,7 +119,7 @@ namespace QuickMedia {
if(result != 0)
goto cleanup;
- result = quickmedia_html_find_nodes_xpath(&html_search, "//div[id='vungdoc']/img",
+ result = quickmedia_html_find_nodes_xpath(&html_search, "//div[class='container-chapter-reader']//img",
[](QuickMediaHtmlNode *node, void *userdata) {
auto *urls = (std::vector<std::string>*)userdata;
const char *src = quickmedia_html_node_get_attribute_value(node, "src");
@@ -135,6 +135,8 @@ namespace QuickMedia {
quickmedia_html_search_deinit(&html_search);
if(result == 0)
last_chapter_url = url;
+ if(last_chapter_image_urls.empty())
+ return ImageResult::ERR;
return result == 0 ? ImageResult::OK : ImageResult::ERR;
}