API reference
API-method editqueue
Signature
Since
v18.0
bool editqueue(string Command, string Param, int[] IDs);
Till
v18.0
bool editqueue(string Command, int Offset, string Param, int[] IDs);
Description
Edit items in download queue or in history.
Arguments
- Command
(string)
- one of the following commands:- FileMoveOffset - Move files relative to the current position in queue.
v18.0
Param contains offset.Offset is passed inv18.0
Offset
. - 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.0
Param 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.
Param
contains category name. - GroupMerge - Merge groups.
- GroupSetParameter - Set post-processing parameter for group.
Param
contains 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.0
Sort selected or all groups. ParameterParam
must 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 IDs
contains the list of groups to sort; pass empty array to sort all groups. - PostMoveOffset -
Deprecated, usev13.0
GroupMoveOffset
instead. - PostMoveTop -
Deprecated, usev13.0
GroupMoveTop
instead. - 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.0
Rename history item.Param
contains new name. - HistorySetCategory -
v15.0
Set category for history item. Param contains category name. - HistorySetParameter - Set post-processing parameter for history items.
Param
contains string in form ofParamname=Paramvalue
. - HistorySetDupeKey - Set duplicate key.
Param
contains duplicate key. See RSS. - HistorySetDupeScore - Set duplicate score.
Param
contains duplicate score. See RSS. - HistorySetDupeMode - Set duplicate mode.
Param
contains one ofSCORE
,ALL
,FORCE
. See RSS. - HistorySetDupeBackup - Set
use as duplicate backup-flag
for history items.Param
contains0
or1
. See RSS. - HistoryMarkBad - Mark history item as bad (and download other duplicate). See RSS.
- HistoryMarkGood - Mark history item as good. See RSS.
- HistoryMarkSuccess -
v15.0
Mark history item as success. See RSS.
- FileMoveOffset - Move files relative to the current position in queue.
- Offset (int) -
offset for commandsv18.0
FileMoveOffset
andGroupMoveOffset
. For all other commands must be0
.v18.0
Offset is passed inParam
and parameterOffset
should 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
.
Return value
true
on success or false
on failure.
Introduction
Installation manuals
- Installation on Windows
- Installation on Windows via WinGet
- Installation on macOS
- Installation on macOS via Homebrew
- Installation on Linux
- Installation on Docker
- Installation on Docker - LinuxServer.io version
- Installation on Android
- Installation on Synology
- Installation on QNAP
- Installation on other NAS devices
Building manuals
Configuration
- Backup And Restore Settings
- Performance Tips
- Choosing Cipher
- Behind Other Web Server
- TLS certificate verification
Usage
- Quick Filter
- Keyboard Shortcuts
- RSS and duplicate check
- VideoSort
- Console Mode
- Command Line Reference
- Performing Speed Tests
Development
Extensions
- Extension Scripts
- Post-processing scripts
- Scan Scripts
- Queue Scripts
- Scheduler Scripts
- Feed Scripts
- API reference