Some changes to Downloader::repairFile

This commit is contained in:
Sude 2013-12-12 11:01:25 +02:00
parent d430af63d0
commit b0f157c710

View File

@ -820,13 +820,13 @@ int Downloader::repairFile(const std::string& url, const std::string& filepath,
chunk_hash.push_back(chunkElem->GetText());
chunkNode = fileNode->IterateChildren(chunkNode);
}
}
std::cout << "XML: Parsing finished" << std::endl << std::endl
<< filename << std::endl
<< "\tMD5:\t" << filehash << std::endl
<< "\tChunks:\t" << chunks << std::endl
<< "\tSize:\t" << filesize << " bytes" << std::endl << std::endl;
}
// Check if file exists
if ((outfile=fopen(filepath.c_str(), "r"))!=NULL && !bParsingFailed)
@ -845,7 +845,9 @@ int Downloader::repairFile(const std::string& url, const std::string& filepath,
}
else
{
if (!bParsingFailed)
std::cout << "File doesn't exist " << filepath << std::endl;
if (this->config.bDownload)
{
std::cout << "Downloading: " << filepath << std::endl;