Configure sabnzbd3/24/2023 _queue_slot : boolean (always true) to identify this as a queue entry Time_left : time left before download should be complete, in seconds 'Failed', 'Verifying', 'Downloading', 'Extracting') Status : download status ('Completed', 'Paused', 'Queued, Size_left : number of bytes still to download before completion the output of the advanced queue command, with an extra property entries containing a normalized version of the slots propertyĪ normalized queue entry contains the following properties: age : age of NZB posting, in seconds.(for all commands and their arguments, check the the SABnzbd API page)įor example, the version() method is implemented like this: optional object of key/value parameters.the SABnzbd version as reported by the server.id of NZB (the nzbid property of queue/history entries)Īccepts multiple ID arguments, or one argument containing the string all to remove everything from both queue and history (so be careful!).Both the history and queue entries, merged.ĭelete an NZB from both queue and history.The results of queue.status() and history.status() (see below), merged ( NB: for now, only the slots and entries are actually merged, the rest of the object returned is based on the object returned by the queue.status() method).API key (required for most operations, see Install on how to get it).Commands Common commands new SABnzbd(URL, API_KEY) Sabnzbd is Promise based, so all commands return a promise. Another thing is that the SABnzbd API is not terribly informative on the status of some commands for instance, the remove commands will always return a true status, even if you're using an nonexistent NZB id. However, because the SABnzbd API is horribly inconsistent at times, I've added some normalization (see the status and entries commands) to make interfacing with it a bit easier. commands related to the SABnzbd history (the list of completed downloads)įor the most part, the client implements the commands found on the SABnzbd API page, and returns their results pretty much as-is.commands related to the SABnzbd queue (the list of currently active downloads). in the SABnzbd Web Server settings, find the API key (or generate one).open the SABnzbd web interface in your browser.You'll also need the API key for your SABnzbd installation:
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |