v6.3.2: fix s=" in search modus

This commit is contained in:
M4RKUS28 2023-10-03 23:32:09 +02:00
parent 6ead42c6c8
commit b8e69cfd10

View File

@ -1121,7 +1121,7 @@ int ProgramManager::searchModus(Settings *settings, std::string *saveTo, bool no
}

std::cout << " > " << parts.at(2) << "\t[" << parts.at(1).erase(0, 1) << "]"
<< ( ( !settings->search_show_othernames || line[0] == '|') ? "" : "\t( " + parts.at(0) + " )" ) << std::endl;
<< ( ( !settings->search_show_othernames || line[0] == '|') ? "" : (parts.at(0).length()) ? ("\t( " + parts.at(0) + " )") : "" ) << std::endl;
//zähne hoch!!

///That Time I Got Reincarnated as a Slime|/tensei-shitara-slime-datta-ken|Tensei Shitara Slime Datta Ken|ANIME
@ -1939,6 +1939,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...
serienListe = replace(serienListe, "<li><a data-alternative-title", "");
//replace s=\" in non anime pages...
serienListe = replace(serienListe, "s=\"", "");
//...\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=\"", "|");
//...\n|/serie /stream/2012-das-jahr-null" title="2012 - Das Jahr Null Stream anschauen">2012 - Das Jahr Null</a>\n...
@ -1958,9 +1960,10 @@ int ProgramManager::searchModus_update(Settings *settings)
line = replace(line, "</a>", "");
//...\n|/serie/ stream/2012-das-jahr-null"_weg_>2012 - Das Jahr Null|\n...

if(line.find("=\"") == 0)
line.erase(0, 2);


///Nadia The Secret, Fushigi no Nadia|/nadia-zauberstein|Nadia und Zauberstein|seriento
///Nadia The Secret, Fushigi no Nadia|/nadia-zauberstein|Nadia und Zauberstein|seriento
serienListe += line + "|" + page.url + "\n";
}
if(serienListe.length() > 0)