diff --git a/src/Metalink2RequestGroup.cc b/src/Metalink2RequestGroup.cc index 4a856bb0..a160c116 100644 --- a/src/Metalink2RequestGroup.cc +++ b/src/Metalink2RequestGroup.cc @@ -228,6 +228,7 @@ void Metalink2RequestGroup::createRequestGroup( // make it in-memory download torrentRg->addPreDownloadHandler( download_handlers::getMemoryPreDownloadHandler()); + torrentRg->markInMemoryDownload(); groups.push_back(torrentRg); } } diff --git a/src/RequestGroup.cc b/src/RequestGroup.cc index cf436650..85b75a45 100644 --- a/src/RequestGroup.cc +++ b/src/RequestGroup.cc @@ -1148,7 +1148,9 @@ std::shared_ptr RequestGroup::createDownloadResult() const void RequestGroup::reportDownloadFinished() { A2_LOG_NOTICE(fmt(MSG_FILE_DOWNLOAD_COMPLETED, - downloadContext_->getBasePath().c_str())); + inMemoryDownload() + ? getFirstFilePath().c_str() + : downloadContext_->getBasePath().c_str())); uriSelector_->resetCounters(); #ifdef ENABLE_BITTORRENT if (downloadContext_->hasAttribute(CTX_ATTR_BT)) {