From 75ca528807ae0eb77d3d11ab6075e256d0bfadd2 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 6 May 2021 13:31:21 +0200 Subject: Add saucenao --- plugins/Saucenao.hpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 plugins/Saucenao.hpp (limited to 'plugins/Saucenao.hpp') 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&) 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 -- cgit v1.2.3-70-g09d2