From 3586e3b510ef6828ab44dad1467f18ef4f2d7e2b Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 31 May 2022 04:33:28 +0200 Subject: Youtube: merge search page and recommended page (show recommended if search field empty) --- include/QuickMedia.hpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') diff --git a/include/QuickMedia.hpp b/include/QuickMedia.hpp index c1df4ed..b5570da 100644 --- a/include/QuickMedia.hpp +++ b/include/QuickMedia.hpp @@ -69,6 +69,7 @@ namespace QuickMedia { bool fetching_next_page_running = false; bool fetching_next_page_failed = false; bool search_suggestion_submitted = false; + bool card_view = false; int fetched_page = 0; mgl::Text search_result_text; AsyncTask fetch_future; @@ -110,6 +111,10 @@ namespace QuickMedia { Json::Value load_history_json(); + Json::Value load_recommended_json(const char *plugin_name); + void fill_recommended_items_from_json(const char *plugin_name, const Json::Value &recommended_json, BodyItems &body_items); + void save_recommendations_from_related_videos(const char *plugin_name, const std::string &video_url, const std::string &video_title, const BodyItems &related_media_body_items); + void set_clipboard(const std::string &str); private: void init(mgl::WindowHandle parent_window, std::string &program_path); -- cgit v1.2.3