aboutsummaryrefslogtreecommitdiff
path: root/plugins/Saucenao.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-09-18 18:07:10 +0200
committerdec05eba <dec05eba@protonmail.com>2021-09-18 18:07:16 +0200
commitd74766245facd48805c2576c711d20cafa33aa35 (patch)
tree0be58368480ada332d62af14ef1a300170149871 /plugins/Saucenao.hpp
parent63774155016ad581dcf418c94cd2ec84fcf86445 (diff)
Show option to open saucenao result urls
ctrl+c for info should only copy the url
Diffstat (limited to 'plugins/Saucenao.hpp')
-rw-r--r--plugins/Saucenao.hpp6
1 files changed, 2 insertions, 4 deletions
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<Tab>&) override {
- return PluginResult::OK;
- }
+ bool submit_is_async() const override { return false; }
+ PluginResult submit(const std::string &title, const std::string &url, std::vector<Tab> &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;