aboutsummaryrefslogtreecommitdiff
path: root/plugins/Saucenao.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-05-07 03:34:05 +0200
committerdec05eba <dec05eba@protonmail.com>2021-05-07 03:34:05 +0200
commit27eac1c56904a853e79d66e1cf4daac7d8f8ba6b (patch)
tree9313548d930ee6a06088be55172868744dd2a5f0 /plugins/Saucenao.hpp
parentecb76941fe38cb8016388f6b2185312432cc8122 (diff)
Add ctrl+i reverse image search to 4chan, add saucenao to launcher
Diffstat (limited to 'plugins/Saucenao.hpp')
-rw-r--r--plugins/Saucenao.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/Saucenao.hpp b/plugins/Saucenao.hpp
index a5aadf9..297dde3 100644
--- a/plugins/Saucenao.hpp
+++ b/plugins/Saucenao.hpp
@@ -5,7 +5,7 @@
namespace QuickMedia {
class SaucenaoPage : public LazyFetchPage {
public:
- SaucenaoPage(Program *program, const std::string &upload_filepath) : LazyFetchPage(program), upload_filepath(upload_filepath) {}
+ SaucenaoPage(Program *program, const std::string &path, bool is_local) : LazyFetchPage(program), path(path), is_local(is_local) {}
const char* get_title() const override { return "SauceNAO"; }
PluginResult submit(const std::string&, const std::string&, std::vector<Tab>&) override {
return PluginResult::OK;
@@ -13,6 +13,7 @@ namespace QuickMedia {
PluginResult lazy_fetch(BodyItems &result_items) override;
bool is_single_page() const override { return true; }
private:
- std::string upload_filepath;
+ std::string path;
+ bool is_local;
};
} \ No newline at end of file