diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-07-13 12:04:12 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-13 12:04:12 +0200 |
commit | b96dce2d670e085067d7b62b43fceac7658c2d5a (patch) | |
tree | 21af560d73232d985273cede3dcdd07996b5cd94 /plugins | |
parent | f38d25cc18720203ff74ca3f8452119c71a82453 (diff) |
Add recommended tab for youtube
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Youtube.hpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/Youtube.hpp b/plugins/Youtube.hpp index 5a88970..8d57cc3 100644 --- a/plugins/Youtube.hpp +++ b/plugins/Youtube.hpp @@ -5,7 +5,8 @@ namespace QuickMedia { class Youtube : public Plugin { public: - Youtube() : Plugin("youtube") {} + Youtube(); + PluginResult get_front_page(BodyItems &result_items) override; SuggestionResult update_search_suggestions(const std::string &text, BodyItems &result_items) override; BodyItems get_related_media(const std::string &url) override; bool search_suggestions_has_thumbnails() const override { return true; } @@ -16,7 +17,10 @@ namespace QuickMedia { Page get_page_after_search() const override { return Page::VIDEO_CONTENT; } private: void search_suggestions_get_continuation(const std::string &url, const std::string &continuation_token, BodyItems &result_items); + std::optional<CommandArg> get_cookies() const; private: std::string last_autocomplete_result; + std::string visitor_info_live; + std::string ysc; }; }
\ No newline at end of file |