mirror of
https://github.com/Sude-/lgogdownloader.git
synced 2024-11-20 11:49:17 +01:00
Download missing files when repairing with --repair --download
This commit is contained in:
parent
b3792554bf
commit
7d24c589d2
@ -781,6 +781,13 @@ int Downloader::repairFile(const std::string& url, const std::string& filepath,
|
||||
else
|
||||
{
|
||||
std::cout << "File doesn't exist " << filepath << std::endl;
|
||||
if (this->config.bDownload)
|
||||
{
|
||||
std::cout << "Downloading: " << filepath << std::endl;
|
||||
CURLcode result = this->downloadFile(url, filepath, xml_data);
|
||||
if (result == CURLE_OK)
|
||||
res = 1;
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user