mirror of https://github.com/aria2/aria2
--select-file option is now available in aria2.changeOption
--select-file option is now available in aria2.changeOption if a download is waiting/paused in queue.pull/2/head
parent
4552bb8c21
commit
1d9e673a68
|
@ -1475,6 +1475,7 @@ OptionHandlerFactory::createOptionHandlers()
|
|||
op->addTag(TAG_BITTORRENT);
|
||||
op->addTag(TAG_METALINK);
|
||||
op->setInitialOption(true);
|
||||
op->setChangeOptionForReserved(true);
|
||||
handlers.push_back(op);
|
||||
}
|
||||
{
|
||||
|
|
|
@ -1128,6 +1128,12 @@ void changeOption
|
|||
util::lowercase(p.second);
|
||||
dctx->setDigest(p.first, util::fromHex(p.second));
|
||||
}
|
||||
if(option.defined(PREF_SELECT_FILE)) {
|
||||
SegList<int> sgl;
|
||||
util::parseIntSegments(sgl, option.get(PREF_SELECT_FILE));
|
||||
sgl.normalize();
|
||||
dctx->setFileFilter(sgl);
|
||||
}
|
||||
if(option.defined(PREF_MAX_DOWNLOAD_LIMIT)) {
|
||||
group->setMaxDownloadSpeedLimit
|
||||
(option.getAsInt(PREF_MAX_DOWNLOAD_LIMIT));
|
||||
|
|
Loading…
Reference in New Issue