aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2019-10-15 19:57:24 +0200
committerdec05eba <dec05eba@protonmail.com>2019-10-15 19:57:27 +0200
commit56acc142c6ef9a65147acdea6737acbfaeb7eca4 (patch)
tree1b9a955bec7ed74c16e3cf663b9acca5aef8c19e /plugins
parent2ba21aa9aa91b975fe0c8be630dde05d0d9b5366 (diff)
Add tor support
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Plugin.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/Plugin.hpp b/plugins/Plugin.hpp
index dffe898..cfa235c 100644
--- a/plugins/Plugin.hpp
+++ b/plugins/Plugin.hpp
@@ -43,7 +43,6 @@ namespace QuickMedia {
std::string value;
};
- DownloadResult download_to_string(const std::string &url, std::string &result, const std::vector<CommandArg> &additional_args = {});
std::string strip(const std::string &str);
void string_replace_all(std::string &str, const std::string &old_str, const std::string &new_str);
void html_unescape_sequences(std::string &str);
@@ -76,7 +75,10 @@ namespace QuickMedia {
virtual bool search_suggestion_is_search() const { return false; }
virtual Page get_page_after_search() const = 0;
+ DownloadResult download_to_string(const std::string &url, std::string &result, const std::vector<CommandArg> &additional_args = {});
+
const std::string name;
+ bool use_tor = false;
protected:
std::string url_param_encode(const std::string &param) const;
};