diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-04-27 14:00:35 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-04-27 14:00:35 +0200 |
commit | 1ba58ba74a767a91b28f44eb75db41455adcaa70 (patch) | |
tree | 5fef40f51fd4fd11966ec58933d10e540fb9fb59 /src/plugins/Manganelo.cpp | |
parent | 76e1aebbe075287a8297194b38343467c76dd964 (diff) |
Add authors page for mangakatana and mangatown, attempt to fix image loading getting stuck, misc fixed related to async in plugins
Diffstat (limited to 'src/plugins/Manganelo.cpp')
-rw-r--r-- | src/plugins/Manganelo.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/Manganelo.cpp b/src/plugins/Manganelo.cpp index f8f604d..e6bdfc0 100644 --- a/src/plugins/Manganelo.cpp +++ b/src/plugins/Manganelo.cpp @@ -30,7 +30,7 @@ namespace QuickMedia { std::vector<Creator> creators; std::string website_data; - if(download_to_string(url, website_data, {}, true) != DownloadResult::OK) + if(download_to_string(url, website_data, {CommandArg { "-H", "referer: https://manganelo.com/" }}, true) != DownloadResult::OK) return PluginResult::NET_ERR; QuickMediaHtmlSearch html_search; @@ -186,7 +186,7 @@ namespace QuickMedia { PluginResult ManganeloCreatorPage::lazy_fetch(BodyItems &result_items) { std::string website_data; - if(download_to_string(creator.url, website_data, {}, true) != DownloadResult::OK) + if(download_to_string(creator.url, website_data, {CommandArg { "-H", "referer: https://manganelo.com/" }}, true) != DownloadResult::OK) return PluginResult::NET_ERR; QuickMediaHtmlSearch html_search; @@ -255,7 +255,7 @@ namespace QuickMedia { return ImageResult::OK; std::string website_data; - if(download_to_string(url, website_data, {}, true) != DownloadResult::OK) + if(download_to_string(url, website_data, {CommandArg { "-H", "referer: https://manganelo.com/" }}, true) != DownloadResult::OK) return ImageResult::NET_ERR; QuickMediaHtmlSearch html_search; |