mirror of https://github.com/aria2/aria2
2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
The available options in -i list should be listed in listRequestOptions(). * src/download_helper.ccpull/1/head
parent
606c11810b
commit
b7664e8d6e
|
@ -1,3 +1,9 @@
|
|||
2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
The available options in -i list should be listed in
|
||||
listRequestOptions().
|
||||
* src/download_helper.cc
|
||||
|
||||
2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Added infoHash, pieceLength, numPieces value for tellActiveStatus
|
||||
|
|
|
@ -307,11 +307,20 @@ static void createRequestGroupForUriList
|
|||
UriListParser p(in);
|
||||
while(p.hasNext()) {
|
||||
std::deque<std::string> uris;
|
||||
SharedHandle<Option> requestOption(new Option(*option.get()));
|
||||
p.parseNext(uris, *requestOption.get());
|
||||
SharedHandle<Option> tempOption(new Option());
|
||||
p.parseNext(uris, *tempOption.get());
|
||||
if(uris.empty()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
SharedHandle<Option> requestOption(new Option(*option.get()));
|
||||
for(std::vector<std::string>::const_iterator i =
|
||||
listRequestOptions().begin(); i != listRequestOptions().end(); ++i) {
|
||||
if(tempOption->defined(*i)) {
|
||||
requestOption->put(*i, tempOption->get(*i));
|
||||
}
|
||||
}
|
||||
|
||||
createRequestGroupForUri(result, requestOption, uris);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue