forked from markus/S_New4
ka
This commit is contained in:
parent
c9a76e9a98
commit
a499b0f47b
@ -364,6 +364,9 @@ std::string PageManager::getLinks(std::string HTML)
|
|||||||
//pos = HTML.find("<script data-cfasync=\"");
|
//pos = HTML.find("<script data-cfasync=\"");
|
||||||
if( (pos = HTML.find("<script async=")) == std::string::npos )
|
if( (pos = HTML.find("<script async=")) == std::string::npos )
|
||||||
pos = HTML.find("<script data-cfasync=\"");
|
pos = HTML.find("<script data-cfasync=\"");
|
||||||
|
if( ( pos = HTML.find("<script data-cfasync=\"") ) == std::string::npos )
|
||||||
|
pos = HTML.find("<div id=\"footer\">");
|
||||||
|
|
||||||
|
|
||||||
if(pos == std::string::npos) {
|
if(pos == std::string::npos) {
|
||||||
std::cout << " => Error: Konnte Position von \"" << "<script async=" << "\" nicht finden.(Punkt nach RedLinks)" <<std::endl;
|
std::cout << " => Error: Konnte Position von \"" << "<script async=" << "\" nicht finden.(Punkt nach RedLinks)" <<std::endl;
|
||||||
|
@ -1558,7 +1558,6 @@ int ProgramManager::searchModus_update(Settings *settings)
|
|||||||
|
|
||||||
Reply reply = pageManager.getServerRequest("https://" + page.url + page.urlAlphabetSerienList);
|
Reply reply = pageManager.getServerRequest("https://" + page.url + page.urlAlphabetSerienList);
|
||||||
|
|
||||||
|
|
||||||
if(reply.html == "-1") {
|
if(reply.html == "-1") {
|
||||||
if(settings->debugMode)
|
if(settings->debugMode)
|
||||||
std::cerr << ">>> Debug In " << __FUNCTION__ << ": getServerRequest function failed." << std::endl;
|
std::cerr << ">>> Debug In " << __FUNCTION__ << ": getServerRequest function failed." << std::endl;
|
||||||
@ -1571,7 +1570,7 @@ int ProgramManager::searchModus_update(Settings *settings)
|
|||||||
|
|
||||||
std::string serienListe = replace( pageManager.grep( reply.html, "data-alternative-title" ), "</li>", "\n" );
|
std::string serienListe = replace( pageManager.grep( reply.html, "data-alternative-title" ), "</li>", "\n" );
|
||||||
|
|
||||||
std::string tests[] = {"\" href=\"", "<li><a data-alternative-title=\"", page.UrlDir, "</a>", };
|
std::string tests[] = {"\" href=\"", "<li><a data-alternative-title", page.UrlDir, "</a>", };
|
||||||
for ( auto t : tests ) {
|
for ( auto t : tests ) {
|
||||||
if(reply.html.find( t ) == std::string::npos) {
|
if(reply.html.find( t ) == std::string::npos) {
|
||||||
if(settings->debugMode)
|
if(settings->debugMode)
|
||||||
@ -1580,8 +1579,8 @@ int ProgramManager::searchModus_update(Settings *settings)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//...\n<li><a data-alternative-title="" href="/serie /stream/2012-das-jahr-null" title="2012 - Das Jahr Null Stream anschauen">2012 - Das Jahr Null</a>\n...
|
//...\n<li><a data-alternative-title href="/serie /stream/2012-das-jahr-null" title="2012 - Das Jahr Null Stream anschauen">2012 - Das Jahr Null</a>\n...
|
||||||
serienListe = replace(serienListe, "<li><a data-alternative-title=\"", "");
|
serienListe = replace(serienListe, "<li><a data-alternative-title", "");
|
||||||
//...\n" href="/serie /stream/2012-das-jahr-null" title="2012 - Das Jahr Null Stream anschauen">2012 - Das Jahr Null</a>\n...
|
//...\n" href="/serie /stream/2012-das-jahr-null" title="2012 - Das Jahr Null Stream anschauen">2012 - Das Jahr Null</a>\n...
|
||||||
serienListe = replace(serienListe, "\" href=\"", "|");
|
serienListe = replace(serienListe, "\" href=\"", "|");
|
||||||
//...\n|/serie /stream/2012-das-jahr-null" title="2012 - Das Jahr Null Stream anschauen">2012 - Das Jahr Null</a>\n...
|
//...\n|/serie /stream/2012-das-jahr-null" title="2012 - Das Jahr Null Stream anschauen">2012 - Das Jahr Null</a>\n...
|
||||||
|
Loading…
Reference in New Issue
Block a user