From 4cfdde076d7bbefa89c54375877c53e1c7e3e8e4 Mon Sep 17 00:00:00 2001 From: Markus Date: Mon, 21 Oct 2019 18:16:57 +0200 Subject: [PATCH] v3.3.2 remove http error checking at gethtml function --- pageManager.cpp | 3 ++- parameterManager.h | 2 +- programManager.cpp | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/pageManager.cpp b/pageManager.cpp index f92187d..49b05e3 100644 --- a/pageManager.cpp +++ b/pageManager.cpp @@ -58,7 +58,8 @@ Reply PageManager::getServerRequest(std::string Url, bool useCookies, std::strin } //Settings - curl_easy_setopt(curl, CURLOPT_FAILONERROR, true); // html errors to errorcode res + //curl_easy_setopt(curl, CURLOPT_FAILONERROR, true); // html errors to errorcode res + curl_easy_setopt(curl, CURLOPT_URL, Url.c_str()); //Url für Curl curl_easy_setopt(curl, CURLOPT_PROXY, sock5Proxy.c_str() ); //Sock5Proxy für Curl curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L); //follows redirection diff --git a/parameterManager.h b/parameterManager.h index 56d2bff..13906db 100644 --- a/parameterManager.h +++ b/parameterManager.h @@ -61,7 +61,7 @@ struct Settings { proxy_ip = "127.0.0.1", languages = "GerDub,GerSub,Eng", genaueHoster = "", - version = "3.3.1", + version = "3.3.2", defaultFileVersion="1.6", outputFilePath = "", default_checkPath = "", diff --git a/programManager.cpp b/programManager.cpp index c9cf88b..a79f4c4 100644 --- a/programManager.cpp +++ b/programManager.cpp @@ -718,7 +718,7 @@ int ProgramManager::infoModus(Settings *settings) std::string nameInUrl = pageManager.checkName(settings->name); if(nameInUrl == "-1") { //Wenn nicht, dann fühe noch eine Suche nach ähnlichen durch. - if( sucheNach_1_Serien(settings, nameInUrl) != 0) { + if( sucheNach_1_Serien(settings, pageManager, nameInUrl) != 0) { if(settings->debugMode) std::cerr << ">>> Debug In " << __FUNCTION__ << ": sucheNach_1_Serien function failed." << std::endl; return 28;