Fixed issue that caused some playlist urls to fail

This commit is contained in:
Leonetienne 2021-03-03 20:52:30 +01:00
parent c34b2f80bf
commit 59e836bc28
4 changed files with 2 additions and 9 deletions

View File

@ -235,15 +235,8 @@ void DownloadManager::UpdateDownloadProgressPercentages()
{
int newPercentage = std::stoi(ss.str());
unfinishedCache[i].download_progress = newPercentage;
//if (newPercentage == 100) unfinishedCache[i].status = DOWNLOAD_STATUS::FINISHED;
}
}
else if ((lbuf.substr(0, 21) == "Deleting original file") ||
(lbuf.substr(0, 24) == "[ffmpeg] Not converting"))
{
unfinishedCache[i].status = DOWNLOAD_STATUS::FINISHED;
}
}
}
}
@ -578,7 +571,7 @@ std::vector<DownloadEntry> DownloadManager::ParseJsonArrayToEntries(const JasonP
void DownloadManager::FetchInformation(std::string url, std::string tubId)
{
std::stringstream ss;
ss << "youtube-dl.exe --skip-download --no-warnings --socket-timeout 5 --dump-json \"" << url << "\" > \"" << XGConfig::downloader.cachedir << "/metadata/" << tubId << ".json" << "\"" << std::endl;
ss << "youtube-dl.exe --skip-download --no-warnings --no-call-home --no-playlist --socket-timeout 5 --dump-json \"" << url << "\" > \"" << XGConfig::downloader.cachedir << "/metadata/" << tubId << ".json" << "\"" << std::endl;
system(ss.str().c_str());
return;
}

View File

@ -1,2 +1,2 @@
#pragma once
#define TUBIO_SERVER_VERSION (0.53)
#define TUBIO_SERVER_VERSION (0.535)

Binary file not shown.

Binary file not shown.