aboutsummaryrefslogtreecommitdiff
path: root/plugins/Saucenao.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-05-06 13:31:21 +0200
committerdec05eba <dec05eba@protonmail.com>2021-05-06 13:31:21 +0200
commit75ca528807ae0eb77d3d11ab6075e256d0bfadd2 (patch)
tree820a857aadf5fdaf1305c41233ae9a5a240ef990 /plugins/Saucenao.hpp
parente66d24f74d5458241d869fb3df42b4f2a2ea69f4 (diff)
Add saucenao
Diffstat (limited to 'plugins/Saucenao.hpp')
-rw-r--r--plugins/Saucenao.hpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/plugins/Saucenao.hpp b/plugins/Saucenao.hpp
new file mode 100644
index 0000000..a5aadf9
--- /dev/null
+++ b/plugins/Saucenao.hpp
@@ -0,0 +1,18 @@
+#pragma once
+
+#include "Page.hpp"
+
+namespace QuickMedia {
+ class SaucenaoPage : public LazyFetchPage {
+ public:
+ SaucenaoPage(Program *program, const std::string &upload_filepath) : LazyFetchPage(program), upload_filepath(upload_filepath) {}
+ const char* get_title() const override { return "SauceNAO"; }
+ PluginResult submit(const std::string&, const std::string&, std::vector<Tab>&) override {
+ return PluginResult::OK;
+ }
+ PluginResult lazy_fetch(BodyItems &result_items) override;
+ bool is_single_page() const override { return true; }
+ private:
+ std::string upload_filepath;
+ };
+} \ No newline at end of file