From d74766245facd48805c2576c711d20cafa33aa35 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 18 Sep 2021 18:07:10 +0200 Subject: Show option to open saucenao result urls ctrl+c for info should only copy the url --- plugins/Saucenao.hpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'plugins/Saucenao.hpp') diff --git a/plugins/Saucenao.hpp b/plugins/Saucenao.hpp index 297dde3..d58b424 100644 --- a/plugins/Saucenao.hpp +++ b/plugins/Saucenao.hpp @@ -7,11 +7,9 @@ namespace QuickMedia { public: 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&) override { - return PluginResult::OK; - } + bool submit_is_async() const override { return false; } + PluginResult submit(const std::string &title, const std::string &url, std::vector &result_tabs) override; PluginResult lazy_fetch(BodyItems &result_items) override; - bool is_single_page() const override { return true; } private: std::string path; bool is_local; -- cgit v1.2.3