aboutsummaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-03-03 22:48:54 +0100
committerdec05eba <dec05eba@protonmail.com>2022-03-03 22:49:54 +0100
commit8497b3daea44fe26fbc2d089a55e75a219e8d603 (patch)
tree12f53cf43107333c52dedecd83e878e92edcbfdd /src/plugins
parent996e5c02ca6f24f54e671a321e5f48f16f59836d (diff)
Fix related videos window not showing for generic media, fix ph related videos always same (anti-curl website)
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/MediaGeneric.cpp2
1 files changed, 1 insertions, 1 deletions
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<MediaTextQuery> &text_queries, const std::vector<MediaThumbnailQuery> &thumbnail_queries, mgl::vec2i thumbnail_max_size, MediaRelatedCustomHandler *custom_handler, BodyItems &result_items, bool cloudflare_bypass, const std::vector<CommandArg> &extra_commands) {
std::vector<CommandArg> 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)