forked from markus/S_New4
melde nicht mehr am anfang immer an, da versucht wird letztes cookiefile zu verwenden
This commit is contained in:
parent
4194eafb9c
commit
eb951fb165
@ -9,7 +9,6 @@ PageManager::PageManager(std::string sock5Proxy, std::string cookieFilePath)
|
||||
PageManager::~PageManager()
|
||||
{
|
||||
curl_global_cleanup();
|
||||
std::cout << "des" << std::endl;
|
||||
}
|
||||
|
||||
void PageManager::setProxy(std::string ip, int port)
|
||||
|
@ -85,8 +85,8 @@ int unterOption_help()
|
||||
<< "\t„url“\t\tModus um eigene Redirect-Links umzuwandeln." << std::endl
|
||||
<< "\t„default“\tModus um Links von Serien zu bekommen." << std::endl
|
||||
<< "\t„search“\tModus um Serien zu suchen." << std::endl
|
||||
<< "\t„info“\tModus um Infos einer Serien zu bekommen." << std::endl
|
||||
<< "\t„clean“\tModus um Cookie-Files zu löschen." << std::endl;
|
||||
<< "\t„info“\t\tModus um Infos einer Serien zu bekommen." << std::endl
|
||||
<< "\t„clean“\t\tModus um Cookie-Files zu löschen." << std::endl;
|
||||
|
||||
return -1;
|
||||
}
|
||||
@ -760,7 +760,7 @@ void unterOption_clean(Settings * settings, int argc, char **argv)
|
||||
if(count == 0)
|
||||
std::cout << " => Nichts zu tun: Keine Cookies vorhanden." << std::endl;
|
||||
else
|
||||
std::cout << " => " << count << " Cookie-Files gelöscht." << std::endl;
|
||||
std::cout << " => " << count << " Cookie-File(s) gelöscht." << std::endl;
|
||||
|
||||
return;
|
||||
}
|
||||
|
@ -159,12 +159,14 @@ int ProgramManager::defaultModus(Settings *settings)
|
||||
return 25;
|
||||
}
|
||||
|
||||
//Wenn multihtreading seaktiviert ist, normal login sonst bereite threads vor
|
||||
/* Wenn multihtreading seaktiviert ist, normal login sonst bereite threads vor
|
||||
if(settings->maxThreads == 0) {
|
||||
// melde bei s.to an und speicher cookies.
|
||||
if (pageManager.login(accountManager.getNextAccount()) != 0) //----------------------------------------
|
||||
return 29;
|
||||
} else {
|
||||
}*/
|
||||
|
||||
if(settings->maxThreads > 0) {
|
||||
for (unsigned i = 0; i < settings->maxThreads; ++i) {
|
||||
PageManager * pm = new PageManager("socks5://" + settings->proxy_ip + ":" + std::to_string(settings->proxy_port), settings->cookieFilePath + std::to_string( i ));
|
||||
pm->setDebugMode(settings->debugMode);
|
||||
@ -314,8 +316,8 @@ int ProgramManager::directLinkModus(Settings *settings)
|
||||
std::istringstream iStrStream( pageManager.replace( settings->name, ",", "\n" ) + "\n" );
|
||||
std::string line;
|
||||
|
||||
if(pageManager.login(accountManager.getNextAccount()) != 0)
|
||||
return 71;
|
||||
//if(pageManager.login(accountManager.getNextAccount()) != 0)
|
||||
// return 71;
|
||||
|
||||
while (getline(iStrStream, line).good()) {
|
||||
if(line.find("https://s.to/redirect/") == std::string::npos) {
|
||||
|
Loading…
Reference in New Issue
Block a user