diff --git a/programManager.cpp b/programManager.cpp index 088fc90..65b9420 100644 --- a/programManager.cpp +++ b/programManager.cpp @@ -238,6 +238,10 @@ int ProgramManager::searchModus_update(Settings *settings) Reply reply = pageManager.getServerRequest("https://s.to/serien"); if(reply.html == "-1") return 21; + else if(reply.html.find("") == std::string::npos ) { + std::cout << " => Error: Konnte in searchModus_update() nicht finden." << std::endl; + return 22; + } std::string serienListe = pageManager.replace( pageManager.grep( reply.html, "data-alternative-title" ), "", "\n" );