diff options
Diffstat (limited to 'src/plugins/Manganelo.cpp')
-rw-r--r-- | src/plugins/Manganelo.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/Manganelo.cpp b/src/plugins/Manganelo.cpp index e63ff6c..6d0447a 100644 --- a/src/plugins/Manganelo.cpp +++ b/src/plugins/Manganelo.cpp @@ -62,6 +62,7 @@ namespace QuickMedia { if(text && class_attr && strstr(class_attr, "chapter-time") && item_data->index < item_data->body_items->size()) { std::string uploaded_date = strip(text); (*item_data->body_items)[item_data->index]->set_description("Uploaded: " + uploaded_date); + (*item_data->body_items)[item_data->index]->set_description_color(sf::Color(179, 179, 179)); item_data->index++; } }, &body_item_context); @@ -117,11 +118,16 @@ namespace QuickMedia { Json::Value name = child.get("name", ""); Json::Value nameunsigned = child.get("nameunsigned", ""); + Json::Value lastchapter = child.get("lastchapter", ""); if(name.isString() && name.asCString()[0] != '\0' && nameunsigned.isString() && nameunsigned.asCString()[0] != '\0') { std::string name_str = name.asString(); while(remove_html_span(name_str)) {} auto item = BodyItem::create(strip(name_str)); item->url = "https://manganelo.com/manga/" + url_param_encode(nameunsigned.asString()); + if(lastchapter.isString() && lastchapter.asCString()[0] != '\0') { + item->set_description("Last chapter: " + lastchapter.asString()); + item->set_description_color(sf::Color(179, 179, 179)); + } Json::Value image = child.get("image", ""); if(image.isString() && image.asCString()[0] != '\0') item->thumbnail_url = image.asString(); |