v18.0
bool editqueue(string Command, string Param, int[] IDs);v18.0
bool editqueue(string Command, int Offset, string Param, int[] IDs);Edit items in download queue or in history.
- Command
(string)- one of the following commands:- FileMoveOffset - Move files relative to the current position in queue.
v18.0Param contains offset.Offset is passed inv18.0Offset. - FileMoveTop - Move files to top of queue.
- FileMoveBottom - Move files to bottom of queue.
- FilePause - Pause files.
- FileResume - Resume (unpause) files.
- FileDelete - Delete files.
- FilePauseAllPars - Pause only pars (does not affect other files).
- FilePauseExtraPars - Pause only pars, except main par-file (does not affect other files).
- FileSetPriority -
Deprecated, use GroupSetPriority instead.v13.0 - FileReorder - Reorder files in the group. The list of IDs may include files only from one group.
- FileSplit - Split nzb-file. The list of IDs contains the files to move into new download item.
- GroupMoveOffset - Move groups relative to the current position in queue.
v18.0Param contains offset.Offset is passed in Offset.v18.0 - GroupMoveTop - Move groups to top of queue.
- GroupMoveBottom - Move groups to bottom of queue.
- GroupPause - Pause groups.
- GroupResume - Resume (unpause) groups.
- GroupDelete - Delete groups and put to history.
- GroupDupeDelete - Delete groups, put to history and mark as duplicate.
- GroupFinalDelete - Delete groups without adding to history.
- GroupPauseAllPars - Pause only pars (does not affect other files).
- GroupPauseExtraPars - Pause only pars, except main par-file (does not affect other files).
- GroupSetPriority - Set priority for all files in group. Param contains priority value.
- GroupSetCategory - Set category for group. Param contains category name.
- GroupApplyCategory - Set or change category for groups and reassign pp-params according to category settings.
Paramcontains category name. - GroupMerge - Merge groups.
- GroupSetParameter - Set post-processing parameter for group.
Paramcontains string in form ofParamname=Paramvalue. - GroupSetName - Rename group. Param contains new name.
- GroupSetDupeKey - Set duplicate key. Param contains duplicate key. See RSS.
- GroupSetDupeScore - Set duplicate score. Param contains duplicate score. See RSS.
- GroupSetDupeMode - Set duplicate mode. Param contains one of
SCORE,ALL,FORCE. See RSS. - GroupSort -
v15.0Sort selected or all groups. ParameterParammust be one of:name,priority,category,size,left; add character+or-to sort to explicitly define ascending or descending order (for examplename-); if none of these characters is used the auto-mode is active: the items are sorted in ascending order first, if nothing changed - they are sorted again in descending order.Parameter IDscontains the list of groups to sort; pass empty array to sort all groups. - PostMoveOffset -
Deprecated, usev13.0GroupMoveOffsetinstead. - PostMoveTop -
Deprecated, usev13.0GroupMoveTopinstead. - PostMoveBottom -
Deprecated, use `GroupMoveBottom instead.v13.0 - PostDelete - Delete post-jobs.
- HistoryDelete - Hide history items (mark as hidden).
- HistoryFinalDelete - Delete history items.
- HistoryReturn - Return history items back to download queue.
- HistoryProcess - Post-process history items again.
- HistoryRedownload - Move history items back to download queue for redownload.
- HistorySetName -
v15.0Rename history item.Paramcontains new name. - HistorySetCategory -
v15.0Set category for history item. Param contains category name. - HistorySetParameter - Set post-processing parameter for history items.
Paramcontains string in form ofParamname=Paramvalue. - HistorySetDupeKey - Set duplicate key.
Paramcontains duplicate key. See RSS. - HistorySetDupeScore - Set duplicate score.
Paramcontains duplicate score. See RSS. - HistorySetDupeMode - Set duplicate mode.
Paramcontains one ofSCORE,ALL,FORCE. See RSS. - HistorySetDupeBackup - Set
use as duplicate backup-flagfor history items.Paramcontains0or1. See RSS. - HistoryMarkBad - Mark history item as bad (and download other duplicate). See RSS.
- HistoryMarkGood - Mark history item as good. See RSS.
- HistoryMarkSuccess -
v15.0Mark history item as success. See RSS.
- FileMoveOffset - Move files relative to the current position in queue.
- Offset (int) -
offset for commandsv18.0FileMoveOffsetandGroupMoveOffset. For all other commands must be0.v18.0Offset is passed inParamand parameterOffsetshould not be passed at all. - Param
(string)- additional parameter if mentioned in the command description, otherwise an empty string. - IDs
(struct[])- array of IDs (as integers).- File-commands (FileXXX) need ID of file.
- All other commands need
NZBID.
true on success or false on failure.