v4.0.2: remove /emblemt.. oder so.. für vivo

This commit is contained in:
Markus 2020-04-04 15:52:29 +02:00
parent 4115d786f9
commit b2a9fabba6
2 changed files with 7 additions and 1 deletions

View File

@ -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%";

View File

@ -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) {