From 5394d8e2c85b52d7375a02f72e089d22a82fba1b Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 21 Dec 2020 20:47:59 +0100 Subject: Add pipe plugin, increase video load timeout to 500 seconds --- plugins/Pipe.hpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 plugins/Pipe.hpp (limited to 'plugins') diff --git a/plugins/Pipe.hpp b/plugins/Pipe.hpp new file mode 100644 index 0000000..0711ee4 --- /dev/null +++ b/plugins/Pipe.hpp @@ -0,0 +1,15 @@ +#pragma once + +#include "Page.hpp" + +namespace QuickMedia { + class PipePage : public Page { + public: + PipePage(Program *program) : Page(program) {} + const char* get_title() const override { return ""; } + 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); + }; +} \ No newline at end of file -- cgit v1.2.3