aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/NyaaSi.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-10-13 01:15:34 +0200
committerdec05eba <dec05eba@protonmail.com>2022-10-13 01:15:34 +0200
commitb84e8b4c8fdab76d85b184600b234923c3c3526d (patch)
treed2622e5db9440c1cbfead5dffb6df08bbc6bc760 /src/plugins/NyaaSi.cpp
parente4d89350e2f239a833f7f337dd858570e7b52712 (diff)
Remove myanimelist (unused code)
Diffstat (limited to 'src/plugins/NyaaSi.cpp')
-rw-r--r--src/plugins/NyaaSi.cpp9
1 files changed, 7 insertions, 2 deletions
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));
}