mirror of https://github.com/aria2/aria2
2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
* src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download failure in Metalink.pull/1/head
parent
9c1bef16c2
commit
d9fab1f061
|
@ -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
|
||||
|
|
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue