API reference
API-method append
Signature
int append(
string NZBFilename,
string NZBContent,
string Category,
int Priority,
bool AddToTop,
bool AddPaused,
string DupeKey,
int DupeScore,
string DupeMode,
bool AutoCategory,
struct[] PPParameters
);
Add nzb-file or URL to download queue
Arguments
- NZBFilename
(string)- name of nzb-file (with extension). This parameter can be an empty string if parameter Content contains an URL; in that case the file name is read from http headers. IfNZBFilenameis provided it must have correct extension (usually.nzb) according to file content. Files without.nzb-extension are not added to queue directly; all files however are sent to scan-scripts. - Content
(string)- content of nzb-file encoded with Base64 or URL to fetch nzb-file from. - Category
(string)- category for nzb-file. Can be empty string. - Priority
(int)- priority for nzb-file. 0 fornormal priority, positive values for high priority and negative values for low priority. Downloads with priorities equal to or greater than 900 are downloaded and post-processed even if the program is in paused state (force mode). Default priorities are: -100 (very low), -50 (low), 0 (normal), 50 (high), 100 (very high), 900 (force). - AddToTop
(bool)-trueif the file should be added to the top of the download queue orfalseif to the end. - AddPaused
(bool)-trueif the file should be added in paused state. DupeKey (string) - duplicate key for nzb-file. See RSS. - DupeScore
(int)- duplicate score for nzb-file. See RSS. - DupeMode
(string)- duplicate mode for nzb-file. See RSS. - AutoCategory
(bool)- If true, the category will be automatically detected from the NZB file (if available). - PPParameters
(array)-v16.0post-processing parameters. The array consists of structures with following fields:- Name
(string)- name of post-processing parameter. - Value
(string)- value of post-processing parameter.
- Name
Return value
Positive number representing NZBID of the queue item. 0 and negative numbers represent error codes. Current version uses only error code 0, newer versions may use other error codes for detailed information about error.
Example
from xmlrpc.client import ServerProxy
from base64 import standard_b64encode
server = ServerProxy("http://nzbget:tegbzn6789@localhost:6789/xmlrpc")
filename = "/tmp/test.nzb"
with open(filename, "rb") as f:
nzb_content = f.read()
base64_nzb_content = standard_b64encode(nzb_content).decode()
server.append(
filename,
base64_nzb_content,
"software",
0,
False,
False,
"",
0,
"SCORE",
[
("*unpack:", "yes"),
("EMail.py:", "yes")
],
)
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
- What is the Default NZBGet Password?
- NZBGet Docker Setup Guide
- NZBGet Port Settings and Access Guide
- How to Configure NZBGet: Complete Setup Guide
- What Is Usenet?
- NZBGet 502 Error: Quick Fix Guide
- How to Upgrade from NZBGet v21.1 to the Latest NZBGet Version
- Slow NZBGet Speeds? Here’s How to Fix It
- NZBGet Performance Optimization Guide
- NZBGet Path and Folder Structure Guide
- How to Link NZBGet with Sonarr, Radarr, and Other Tools
- Sonarr vs VideoSort: How They Work with NZBGet
- NZBGet Storage Guide: Improve Performance with Smarter Path Setup
- How to Configure NZBGet on Android TV
- Using NZBGet with Sonarr and Radarr on Android TV
Usage
- Quick Filter
- Keyboard Shortcuts
- RSS and duplicate check
- VideoSort
- Console Mode
- Command Line Reference
- Performing Speed Tests
- NZBGet Interface Buttons Explained: What They Do and How to Use Them
- How to Use the NZBGet Status Tab
Development
Extensions
- Extension Scripts
- Post-processing scripts
- Scan Scripts
- Queue Scripts
- Scheduler Scripts
- Feed Scripts
- NZBGet Extension Manager: What It Is and How to Use It
- API reference
News server setup
- Astraweb
- BlockNews
- Cheapnews
- EasyNews
- Eweka
- FreeDiscussions
- Frugal Usenet
- GigaNews
- NewsDemon
- Newsgroup Ninja
- NewsgroupDirect
- Newshosting
- Pure Usenet
- SunnyUsenet
- Supernews
- theCubeNet
- ThunderNews
- TweakNews
- Usenet.Farm
- UsenetExpress
- UsenetServer
- UseNext
- ViperNews
- XLned
- XS News