Allow automatic xml creation durring --repair --download

This commit is contained in:
Sude 2013-09-04 21:03:43 +03:00
parent e6994d7f5f
commit a183bb59e6

View File

@ -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;
}