diff options
author | dec05eba <dec05eba@protonmail.com> | 2022-02-21 05:01:35 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2022-02-21 05:01:35 +0100 |
commit | fab3bb7f8af92b47ce2e7be7c5b58c4ea5aee48c (patch) | |
tree | edb12fedbdceec8594d33200ffdf557f196e4f0c /plugins | |
parent | 2beeddb325ecbc03ddd6c741449fabd527a3c8cc (diff) |
Revert back to recommending youtube videos based on related videos
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Peertube.hpp | 1 | ||||
-rw-r--r-- | plugins/Youtube.hpp | 16 |
2 files changed, 0 insertions, 17 deletions
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<MediaChapter> &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<AsyncTask<std::vector<YoutubeSubscriptionTaskResult>>, 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<Tab> &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<std::string> added_videos; - }; - class YoutubeRelatedVideosPage : public RelatedVideosPage { public: YoutubeRelatedVideosPage(Program *program) : RelatedVideosPage(program) {} |