API reference
API-method configtemplates
Signature
struct[] configtemplates(bool LoadFromDisk)
Description
Returns NZBGet configuration file template and also extracts configuration sections from all post-processing files. This information is for example used by web-interface to build settings page or page Postprocess
in download details dialog.
Arguments
- LoadFromDisk
(bool)
-v15.0
true
- load templates from disk,false
- give templates loaded on program start.
Since
v23.0
Return value
This method returns array of structures with a field:
- Template
(string)
- Content of the configuration template (multiple lines).
Till
v23.0
Return value
This method returns array of structures with following fields:
- Name
(string)
- Post-processing script name. For examplevideosort/VideoSort.py
. This field is empty in the first record, which holds the config template of the program itself. - DisplayName
(string)
- Nice script name ready for displaying. For exampleVideoSort
. - PostScript
(bool)
-true
for post-processing scripts. - ScanScript
(bool)
-true
for scan scripts. - QueueScript
(bool)
-true
for queue scripts. - SchedulerScript
(bool)
-true
for scheduler scripts. - Template
(string)
- Content of the configuration template (multiple lines).
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
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
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