From b2a9fabba67042d7b0f1b6c25047c156a7985b39 Mon Sep 17 00:00:00 2001 From: Markus Date: Sat, 4 Apr 2020 15:52:29 +0200 Subject: [PATCH] =?UTF-8?q?v4.0.2:=20remove=20/emblemt..=20oder=20so..=20f?= =?UTF-8?q?=C3=BCr=20vivo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/parameterManager.h | 2 +- src/programManager.cpp | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/parameterManager.h b/src/parameterManager.h index 61b7dba..cb7cd7d 100644 --- a/src/parameterManager.h +++ b/src/parameterManager.h @@ -91,7 +91,7 @@ struct Settings { proxy_ip = "127.0.0.1", languages = "GerDub,GerSub,Eng,", genaueHoster = "", - version = "4.0.1", + version = "4.0.2", defaultFileVersion="1.8", default_checkPath = "", default_Searchmuster = "S%Staffel%E%Folge%"; diff --git a/src/programManager.cpp b/src/programManager.cpp index 9d0214d..4d00d51 100644 --- a/src/programManager.cpp +++ b/src/programManager.cpp @@ -130,6 +130,9 @@ void * threadFunction(void * data) { // get NO-Redirect Link after getUrlAfterRedirect Function } else { + // für Vivo... + newUrl = replace(newUrl, "/embed/", "/"); + myThreadData->returnValue = " => " + folgenID + ( (folgenID == "") ? "" : ": " ) + green + newUrl + clearColor; if(myThreadData->settings->outputFilePaths.size() != 0) { if(myThreadData->pageManager->writeToFile(myThreadData->settings->outputFilePaths,folgenID + ( (folgenID == "") ? "" : ": " ) + newUrl) != 0) { @@ -1537,6 +1540,9 @@ int ProgramManager::convertLink(std::string redirectLink, AccountManager * accou return 0; //sonst war die umwandlung erfolgreich } else { + // für Vivo... + newUrl = replace(newUrl, "/embed/", "/"); + std::cout << " => " << folgenID << ( (folgenID == "") ? "" : ": " ) << green << newUrl << ((settings->colorless) ? "" : "\033[0m") << std::endl; if(settings->outputFilePaths.size() != 0) if(pageManager.writeToFile(settings->outputFilePaths,folgenID + ( (folgenID == "") ? "" : ": " ) + newUrl) != 0) {