aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-04-28 20:02:14 +0200
committerdec05eba <dec05eba@protonmail.com>2021-04-28 20:02:14 +0200
commit4694f8544c4cbd7e7d92323976b63cc77fdadb27 (patch)
treea1d45799ee92e8513715b5b7a95908e961795c10 /include
parent3b0d367c6b70f88e5fa01a1813f9487c37401050 (diff)
Lazy load recommendations, simplify html parser
Diffstat (limited to 'include')
-rw-r--r--include/QuickMedia.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/QuickMedia.hpp b/include/QuickMedia.hpp
index ec788bf..cb7e421 100644
--- a/include/QuickMedia.hpp
+++ b/include/QuickMedia.hpp
@@ -95,6 +95,9 @@ namespace QuickMedia {
const char* get_plugin_name() const;
void manga_get_watch_history(const char *plugin_name, BodyItems &history_items);
void youtube_get_watch_history(BodyItems &history_items);
+
+ Json::Value load_video_history_json();
+ Json::Value load_recommended_json();
private:
void init(Window parent_window);
void load_plugin_by_name(std::vector<Tab> &tabs, const char *start_dir);
@@ -129,9 +132,6 @@ namespace QuickMedia {
// Returns PageType::EXIT if empty
PageType pop_page_stack();
- Json::Value load_video_history_json();
- Json::Value load_recommended_json();
-
void save_recommendations_from_related_videos(const std::string &video_url, const std::string &video_title, const BodyItems &related_media_body_items);
private:
enum class UpscaleImageAction {