From 760d903fe7c7c56a6408accff0daa47c2e743eed Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 19 Jan 2023 23:47:37 +0100 Subject: Lazy fetch local anime page --- src/plugins/NyaaSi.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/plugins/NyaaSi.cpp') diff --git a/src/plugins/NyaaSi.cpp b/src/plugins/NyaaSi.cpp index 739032b..d0bc616 100644 --- a/src/plugins/NyaaSi.cpp +++ b/src/plugins/NyaaSi.cpp @@ -463,6 +463,7 @@ namespace QuickMedia { result_items.push_back(std::move(body_item)); } + html_unescape_sequences(title); result_items.front()->set_title(title); result = quickmedia_html_find_nodes_xpath(&html_search, "//div[id='torrent-description']", @@ -513,7 +514,9 @@ namespace QuickMedia { QuickMediaStringView href = quickmedia_html_node_get_attribute_value(node->node, "href"); QuickMediaStringView text = quickmedia_html_node_get_text(node); if(href.data && text.data && href.size >= 6 && memcmp(href.data, "/user/", 6) == 0) { - auto body_item = BodyItem::create(std::string(text.data, text.size)); + std::string title(text.data, text.size); + html_unescape_sequences(title); + auto body_item = BodyItem::create(std::move(title)); //body_item->url = "https://nyaa.si/" + std::string(href); item_data->push_back(std::move(body_item)); } -- cgit v1.2.3