From 5c27b5fbaa0f1693bf4605a3e6fc57d0f066c0ec Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 12 Nov 2021 22:37:23 +0100 Subject: Allow plugins to add their own tabs in ctrl+r instead of search, comments, related and channel --- plugins/Youtube.hpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'plugins/Youtube.hpp') diff --git a/plugins/Youtube.hpp b/plugins/Youtube.hpp index 97dea19..23f7e20 100644 --- a/plugins/Youtube.hpp +++ b/plugins/Youtube.hpp @@ -143,10 +143,7 @@ namespace QuickMedia { YoutubeVideoPage(Program *program, std::string url); const char* get_title() const override { return ""; } BodyItems get_related_media(const std::string &url) override; - bool create_search_page(Program *program, Tab &tab) override; - std::unique_ptr create_comments_page(Program *program) override; - std::unique_ptr create_related_videos_page(Program *program) override; - std::unique_ptr create_channels_page(Program *program, const std::string &channel_url) override; + PluginResult get_related_pages(const BodyItems &related_videos, const std::string &channel_url, std::vector &result_tabs) override; void set_url(std::string new_url) override; std::string get_url_timestamp() override { return timestamp; } std::string get_video_url(int max_height, bool &has_embedded_audio, std::string &ext) override; -- cgit v1.2.3