From 8497b3daea44fe26fbc2d089a55e75a219e8d603 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 3 Mar 2022 22:48:54 +0100 Subject: Fix related videos window not showing for generic media, fix ph related videos always same (anti-curl website) --- src/plugins/MediaGeneric.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/MediaGeneric.cpp') diff --git a/src/plugins/MediaGeneric.cpp b/src/plugins/MediaGeneric.cpp index 0b69556..adbac0d 100644 --- a/src/plugins/MediaGeneric.cpp +++ b/src/plugins/MediaGeneric.cpp @@ -40,7 +40,7 @@ namespace QuickMedia { static PluginResult fetch_page_results(const std::string &url, const std::string &website_url, const std::vector &text_queries, const std::vector &thumbnail_queries, mgl::vec2i thumbnail_max_size, MediaRelatedCustomHandler *custom_handler, BodyItems &result_items, bool cloudflare_bypass, const std::vector &extra_commands) { std::vector args = extra_commands; if(!website_url.empty()) - args.push_back({ "-H", "referer: " + website_url }); + args.push_back({ "--header", "referer: " + website_url }); std::string website_data; if(download_to_string(url, website_data, args, true, true, cloudflare_bypass) != DownloadResult::OK) -- cgit v1.2.3