v4.1.3: fix error with s.to not seri... .sx url in unteroption url... && now to debug but colorless mode whent want to use *-hoster && ka

This commit is contained in:
Markus 2020-06-05 15:30:20 +02:00
parent 25156f02ea
commit eccaf98c1b
4 changed files with 1605 additions and 3 deletions

View File

View File

@ -91,7 +91,7 @@ struct Settings {
proxy_ip = "127.0.0.1", proxy_ip = "127.0.0.1",
languages = "GerDub,GerSub,Eng,", languages = "GerDub,GerSub,Eng,",
genaueHoster = "", genaueHoster = "",
version = "4.1.2", version = "4.1.3",
defaultFileVersion="1.8", defaultFileVersion="1.8",
default_checkPath = "", default_checkPath = "",
default_Searchmuster = "S%Staffel%E%Folge%"; default_Searchmuster = "S%Staffel%E%Folge%";

File diff suppressed because it is too large Load Diff

View File

@ -548,7 +548,7 @@ int ProgramManager::defaultModus(Settings *settings)
return 50; return 50;
} }
std::string allLinks = pageManager.getLinks(tmp_reply.html); std::string allLinks = pageManager.getLinks(tmp_reply.html);
if(settings->genaueHoster == "*," && settings->debugMode) { if(settings->genaueHoster == "*," && settings->colorless) {
if(settings->debugMode) if(settings->debugMode)
std::cout << allLinks << std::endl; std::cout << allLinks << std::endl;
std::stringstream strstrem(allLinks); std::stringstream strstrem(allLinks);
@ -624,7 +624,7 @@ int ProgramManager::directLinkModus(Settings *settings)
std::cout << " => Error: Invalid Redirect Link: '" << line << "'" << std::endl; std::cout << " => Error: Invalid Redirect Link: '" << line << "'" << std::endl;
continue; continue;


} else if(convertLink(line.erase(0, ((line.find("serienstream.sx") == std::string::npos) ? 0 : line.find("serienstream.sx") + 15 )), &accountManager, settings) != 0) { } else if(convertLink(line.erase(0, line.find("/redirect/") ), &accountManager, settings) != 0) {
if(settings->debugMode) if(settings->debugMode)
std::cerr << ">>> Debug In " << __FUNCTION__ << ": convert Link failed." << std::endl; std::cerr << ">>> Debug In " << __FUNCTION__ << ": convert Link failed." << std::endl;
return 78; return 78;