From 03844836fbacbd2d78f6bacce9e964184afcfb97 Mon Sep 17 00:00:00 2001 From: Markus Date: Sun, 11 Aug 2019 19:20:32 +0200 Subject: [PATCH] add check for full html file --- programManager.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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" );