From 04e852c45a3f309d5e139b0ca059b32277c250e4 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 6 Apr 2021 06:16:47 +0200 Subject: Create a unified launcher for quickmedia --- plugins/Page.hpp | 2 +- plugins/Pipe.hpp | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'plugins') diff --git a/plugins/Page.hpp b/plugins/Page.hpp index 143d9df..5c0a558 100644 --- a/plugins/Page.hpp +++ b/plugins/Page.hpp @@ -111,6 +111,6 @@ namespace QuickMedia { virtual std::unique_ptr create_channels_page(Program *program, const std::string &channel_url) = 0; virtual std::string get_url() = 0; virtual std::string url_get_playable_url(const std::string &url) { return url; } - virtual bool video_should_be_skipped(const std::string &url) { return false; } + virtual bool video_should_be_skipped(const std::string &url) { (void)url; return false; } }; } \ No newline at end of file diff --git a/plugins/Pipe.hpp b/plugins/Pipe.hpp index 0711ee4..46864be 100644 --- a/plugins/Pipe.hpp +++ b/plugins/Pipe.hpp @@ -5,11 +5,13 @@ namespace QuickMedia { class PipePage : public Page { public: - PipePage(Program *program) : Page(program) {} - const char* get_title() const override { return ""; } + PipePage(Program *program, const char *title = "") : Page(program), title(title) {} + const char* get_title() const override { return title; } PluginResult submit(const std::string &title, const std::string &url, std::vector &result_tabs) override; bool is_single_page() const override { return true; } static void load_body_items_from_stdin(BodyItems &items); + private: + const char *title; }; } \ No newline at end of file -- cgit v1.2.3