aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-05-31 04:33:28 +0200
committerdec05eba <dec05eba@protonmail.com>2022-05-31 04:33:28 +0200
commit3586e3b510ef6828ab44dad1467f18ef4f2d7e2b (patch)
tree5e9eed17378fe65ef594cdac55acd5899b66ae8a /include
parent6e9bfd6571adf151e4e7fe4cb63f731314ebeff6 (diff)
Youtube: merge search page and recommended page (show recommended if search field empty)
Diffstat (limited to 'include')
-rw-r--r--include/QuickMedia.hpp5
1 files changed, 5 insertions, 0 deletions
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<FetchResult> 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);