From b84e8b4c8fdab76d85b184600b234923c3c3526d Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 13 Oct 2022 01:15:34 +0200 Subject: Remove myanimelist (unused code) --- src/plugins/NyaaSi.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/plugins/NyaaSi.cpp') diff --git a/src/plugins/NyaaSi.cpp b/src/plugins/NyaaSi.cpp index b56ef69..705d961 100644 --- a/src/plugins/NyaaSi.cpp +++ b/src/plugins/NyaaSi.cpp @@ -268,16 +268,21 @@ namespace QuickMedia { index = tr_end + 5; - std::string description = "Size: " + size + " | Published: " + unix_time_to_local_time_str(nyaa_si_time_to_unix_time(timestamp.c_str())) + " | Seeders: " + seeders + " | Leechers: " + leechers + " | Completed: " + completed; auto body_item = BodyItem::create(std::move(title)); body_item->thumbnail_url = "https://" + domain + "/static/img/icons/" + (is_sukebei ? "sukebei" : "nyaa") + "/" + website_data.substr(category_begin + 4, category_end - (category_begin + 4)) + ".png"; - body_item->set_description(std::move(description)); body_item->url = "https://" + domain + std::move(view_url); if(is_trusted) body_item->set_title_color(mgl::Color(43, 255, 47)); else if(is_remake) body_item->set_title_color(mgl::Color(255, 45, 47)); body_item->thumbnail_size = mgl::vec2i(80, 28); + + body_item->add_reaction("Size: " + size, nullptr); + body_item->add_reaction("Published: " + unix_time_to_local_time_str(nyaa_si_time_to_unix_time(timestamp.c_str())), nullptr); + body_item->add_reaction("Seeders: " + seeders, nullptr); + body_item->add_reaction("Leechers: " + leechers, nullptr); + body_item->add_reaction("Completed: " + completed, nullptr); + result_items.push_back(std::move(body_item)); } -- cgit v1.2.3