2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>

* src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent 
download
	failure in Metalink.
pull/1/head
Tatsuhiro Tsujikawa 2007-09-05 12:40:08 +00:00
parent 9c1bef16c2
commit d9fab1f061
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
* src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
failure in Metalink.
2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Automatically save *.aria2 control file of http/ftp download in every

View File

@ -155,9 +155,11 @@ RequestInfos MetalinkRequestInfo::execute() {
urls.push_back((*itr)->url);
}
RequestGroupHandle rg = new RequestGroup(urls, op);
rg->setHintFilename(entry->file->getBasename());
if(itr == entry->resources.end()) {
rg->setHintFilename(entry->file->getBasename());
rg->setHintTotalLength(entry->getLength());
}
rg->setTopDir(entry->file->getDirname());
rg->setHintTotalLength(entry->getLength());
rg->setNumConcurrentCommand(entry->maxConnections < 0 ?
op->getAsInt(PREF_METALINK_SERVERS) :
min<int32_t>(op->getAsInt(PREF_METALINK_SERVERS), entry->maxConnections));