aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Youtube.hpp6
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