mirror of
https://github.com/Sude-/lgogdownloader.git
synced 2024-11-20 11:49:17 +01:00
Allow automatic xml creation durring --repair --download
This commit is contained in:
parent
e6994d7f5f
commit
a183bb59e6
@ -841,7 +841,14 @@ int Downloader::repairFile(const std::string& url, const std::string& filepath,
|
||||
std::cout << "Downloading: " << filepath << std::endl;
|
||||
CURLcode result = this->downloadFile(url, filepath, xml_data);
|
||||
if (result == CURLE_OK)
|
||||
{
|
||||
if (config.sXMLFile == "automatic" && bParsingFailed)
|
||||
{
|
||||
std::cout << "Starting automatic XML creation" << std::endl;
|
||||
Util::createXML(filepath, config.iChunkSize, config.sXMLDirectory);
|
||||
}
|
||||
res = 1;
|
||||
}
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user