diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-03-30 00:45:51 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-03-30 00:45:51 +0200 |
commit | 539d9b457c4f30ef0731a479772212e7ce8bfd7c (patch) | |
tree | 256aae0d3524918ba80d609cadd9063cd06fb453 /include/DownloadUtils.hpp | |
parent | 3ac540c21116cb9cc91cfd1d7b0dd6f6ded31123 (diff) |
Remove tor option. Use torsocks instead (which is what quickmedia did anyways)
Diffstat (limited to 'include/DownloadUtils.hpp')
-rw-r--r-- | include/DownloadUtils.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/DownloadUtils.hpp b/include/DownloadUtils.hpp index 6d96cd6..40ec12a 100644 --- a/include/DownloadUtils.hpp +++ b/include/DownloadUtils.hpp @@ -21,8 +21,8 @@ namespace QuickMedia { // Return true the return DownloadResult::OK for the download, which also saves the result in cache if |download_to_string_cache| is used using DownloadErrorHandler = std::function<bool(std::string&)>; - DownloadResult download_to_string(const std::string &url, std::string &result, const std::vector<CommandArg> &additional_args, bool use_tor, bool use_browser_useragent = false, bool fail_on_error = true); - DownloadResult download_to_string_cache(const std::string &url, std::string &result, const std::vector<CommandArg> &additional_args, bool use_tor, bool use_browser_useragent = false, DownloadErrorHandler error_handler = nullptr, Path cache_path = ""); - DownloadResult download_to_file(const std::string &url, const std::string &destination_filepath, const std::vector<CommandArg> &additional_args, bool use_tor, bool use_browser_useragent = false); - DownloadResult download_to_json(const std::string &url, rapidjson::Document &result, const std::vector<CommandArg> &additional_args, bool use_tor, bool use_browser_useragent = false, bool fail_on_error = true); + DownloadResult download_to_string(const std::string &url, std::string &result, const std::vector<CommandArg> &additional_args, bool use_browser_useragent = false, bool fail_on_error = true); + DownloadResult download_to_string_cache(const std::string &url, std::string &result, const std::vector<CommandArg> &additional_args, bool use_browser_useragent = false, DownloadErrorHandler error_handler = nullptr, Path cache_path = ""); + DownloadResult download_to_file(const std::string &url, const std::string &destination_filepath, const std::vector<CommandArg> &additional_args, bool use_browser_useragent = false); + DownloadResult download_to_json(const std::string &url, rapidjson::Document &result, const std::vector<CommandArg> &additional_args, bool use_browser_useragent = false, bool fail_on_error = true); }
\ No newline at end of file |