aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-12-21 20:47:59 +0100
committerdec05eba <dec05eba@protonmail.com>2020-12-21 20:47:59 +0100
commit5394d8e2c85b52d7375a02f72e089d22a82fba1b (patch)
tree3d14614b85b28a78edfe269a696daf02bc51de15 /plugins
parent4f8e4d11e51e2436b957157de86755f5f8879f61 (diff)
Add pipe plugin, increase video load timeout to 500 seconds
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Pipe.hpp15
1 files changed, 15 insertions, 0 deletions
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<Tab> &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