aboutsummaryrefslogtreecommitdiff
path: root/plugins/Saucenao.hpp
blob: d58b4249d6b24fdce033506df76100a30c8bc984 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#pragma once

#include "Page.hpp"

namespace QuickMedia {
    class SaucenaoPage : public LazyFetchPage {
    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"; }
        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;
    private:
        std::string path;
        bool is_local;
    };
}