diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-06-29 17:45:40 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-06-29 17:45:40 +0200 |
commit | 65457dc196f1b56128b1dc6eeaf3a086da1a180f (patch) | |
tree | 3e613e4664073861e245c14b6b46abbb32c45087 /include | |
parent | 1ebc4cbc6ee3857a64a0658201cd55d65b6a6b15 (diff) |
Remove debug code from download header
Diffstat (limited to 'include')
-rw-r--r-- | include/DownloadUtils.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/DownloadUtils.hpp b/include/DownloadUtils.hpp index ed7f766..dbac921 100644 --- a/include/DownloadUtils.hpp +++ b/include/DownloadUtils.hpp @@ -28,8 +28,9 @@ namespace QuickMedia { 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, bool cloudflare_bypass = false, std::string *header = nullptr, int download_limit = 1024 * 1024 * 100); // 100mb download limit // Note: This function saves the content to the file atomically 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 = ""); - // Note: This function saves the content to the file atomically - DownloadResult download_to_file(const std::string &url, const std::string &destination_filepath, const std::vector<CommandArg> &additional_args, bool use_browser_useragent = false); + // Note: This function saves the content to the file atomically. + // Note: if |cloudflare_bypass| is set to true then tls is limited to version 1.1 and the user agent is changed. + DownloadResult download_to_file(const std::string &url, const std::string &destination_filepath, const std::vector<CommandArg> &additional_args, bool use_browser_useragent = false, bool cloudflare_bypass = false); // Returns false if there was an error trying to create the download process bool download_async_gui(const std::string &url, const std::string &file_manager_start_dir, bool use_youtube_dl, bool no_video); 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); |