diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-12-21 20:47:59 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-12-21 20:47:59 +0100 |
commit | 5394d8e2c85b52d7375a02f72e089d22a82fba1b (patch) | |
tree | 3d14614b85b28a78edfe269a696daf02bc51de15 /plugins | |
parent | 4f8e4d11e51e2436b957157de86755f5f8879f61 (diff) |
Add pipe plugin, increase video load timeout to 500 seconds
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Pipe.hpp | 15 |
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 |