diff options
author | dec05eba <dec05eba@protonmail.com> | 2019-10-15 19:57:24 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2019-10-15 19:57:27 +0200 |
commit | 56acc142c6ef9a65147acdea6737acbfaeb7eca4 (patch) | |
tree | 1b9a955bec7ed74c16e3cf663b9acca5aef8c19e /plugins | |
parent | 2ba21aa9aa91b975fe0c8be630dde05d0d9b5366 (diff) |
Add tor support
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Plugin.hpp | 4 |
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 ¶m) const; }; |