From dccfb471ff7017f9ce3a6ed264a684e4fbc383e4 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 15 Jun 2021 20:26:02 +0200 Subject: Add manga description to mangadex and mangakatana search, fix matrix notification invite not showing when opening quickmedia, clear fetch page and items on reload of lazy page --- src/plugins/Mangadex.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/plugins/Mangadex.cpp') diff --git a/src/plugins/Mangadex.cpp b/src/plugins/Mangadex.cpp index 45e81cd..0178c1e 100644 --- a/src/plugins/Mangadex.cpp +++ b/src/plugins/Mangadex.cpp @@ -186,6 +186,14 @@ namespace QuickMedia { auto body_item = BodyItem::create(std::move(title)); body_item->url = id_json.asString(); + const Json::Value &description_json = attributes_json["description"]; + if(description_json.isObject()) { + const Json::Value &en_json = description_json["en"]; + if(en_json.isString()) { + body_item->set_description(en_json.asString()); + body_item->set_description_color(sf::Color(179, 179, 179)); + } + } result_items.push_back(std::move(body_item)); } -- cgit v1.2.3