From fab3bb7f8af92b47ce2e7be7c5b58c4ea5aee48c Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 21 Feb 2022 05:01:35 +0100 Subject: Revert back to recommending youtube videos based on related videos --- plugins/Peertube.hpp | 1 - plugins/Youtube.hpp | 16 ---------------- 2 files changed, 17 deletions(-) (limited to 'plugins') diff --git a/plugins/Peertube.hpp b/plugins/Peertube.hpp index 10c2761..1f51555 100644 --- a/plugins/Peertube.hpp +++ b/plugins/Peertube.hpp @@ -83,7 +83,6 @@ namespace QuickMedia { std::string get_audio_url(std::string &ext) override; PluginResult load(std::string &title, std::string &channel_url, std::vector &chapters, std::string &err_str) override; bool autoplay_next_item() override { return autoplay_next; } - //void mark_watched() override; //void get_subtitles(SubtitleData &subtitle_data) override; private: std::string server; diff --git a/plugins/Youtube.hpp b/plugins/Youtube.hpp index 511c78a..4772aa1 100644 --- a/plugins/Youtube.hpp +++ b/plugins/Youtube.hpp @@ -130,22 +130,6 @@ namespace QuickMedia { std::array>, 4> subscription_load_tasks; // TODO: Use multiple curl outputs instead? }; - class YoutubeRecommendedPage : public LazyFetchPage { - public: - YoutubeRecommendedPage(Program *program) : LazyFetchPage(program) {} - const char* get_title() const override { return "Recommended"; } - PluginResult get_page(const std::string &str, int page, BodyItems &result_items) override; - PluginResult submit(const SubmitArgs &args, std::vector &result_tabs) override; - PluginResult lazy_fetch(BodyItems &result_items) override; - bool reload_on_page_change() override { return true; } - private: - PluginResult search_get_continuation(const std::string &continuation_token, BodyItems &result_items); - private: - int current_page = 0; - std::string continuation_token; - std::unordered_set added_videos; - }; - class YoutubeRelatedVideosPage : public RelatedVideosPage { public: YoutubeRelatedVideosPage(Program *program) : RelatedVideosPage(program) {} -- cgit v1.2.3-70-g09d2