aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Page.hpp2
-rw-r--r--plugins/Pipe.hpp6
2 files changed, 5 insertions, 3 deletions
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<LazyFetchPage> 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<Tab> &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