1
# Sample configuration file for NZBGet
3
# On POSIX put this file to one of the following locations:
7
# /usr/local/etc/nzbget.conf
10
# On Windows put this file in program's directory.
12
# You can also put the file into any location, if you specify the path to it
13
# using switch "-c", e.g:
14
# nzbget -c /home/user/myconfig.txt
16
# For quick start change the option MainDir and configure one news-server
19
##############################################################################
22
# Root directory for all tasks.
24
# On POSIX you can use "~" as alias for home directory (e.g. "~/download").
25
# On Windows use absolute paths (e.g. "C:\Download").
28
# Destination directory for downloaded files.
30
# If you want to distinguish between partially downloaded files and
31
# completed downloads, use also option <InterDir>.
32
DestDir=${MainDir}/dst
34
# Directory to store intermediate files.
36
# If this option is set (not empty) the files are downloaded into
37
# this directory first. After successful download of nzb-file (possibly
38
# after par-repair) the files are moved to destination directory
39
# (option <DestDir>). If download or unpack fail the files remain in
40
# intermediate directory.
42
# Using of intermediate directory can significantly improve unpack
43
# performance if you can put intermediate directory (option <InterDir>)
44
# and destination directory (option <DestDir>) on separate physical
47
# NOTE: If the option <InterDir> is set to empty value the downloaded
48
# files are put directly to destination directory (option <DestDir>).
51
# Directory to monitor for incoming nzb-jobs.
53
# Can have subdirectories.
54
# A nzb-file queued from a subdirectory will be automatically assigned to
55
# category with the directory-name.
58
# Directory to store download queue.
59
QueueDir=${MainDir}/queue
61
# Directory to store temporary files.
62
TempDir=${MainDir}/tmp
64
# Directory with web-interface files.
66
# Example: /usr/local/share/nzbget/webui.
68
# NOTE: To disable web-interface set the option to an empty value.
69
# This however doesn't disable the built-in web-server completely because
70
# it is also used to serve JSON-/XML-RPC requests.
73
# Directory with post-processing scripts.
75
# NOTE: For information on writing post-processing scripts visit
76
# http://nzbget.sourceforge.net/Post-processing_scripts.
77
ScriptDir=${MainDir}/ppscripts
79
# Lock-file for daemon-mode, POSIX only.
81
# If the option is not empty, NZBGet creates the file and writes process-id
82
# (PID) into it. That info can be used in shell scripts.
83
LockFile=${MainDir}/nzbget.lock
85
# Where to store log file, if it needs to be created.
87
# NOTE: See also option <CreateLog>.
88
LogFile=${DestDir}/nzbget.log
90
# Configuration file template.
92
# Put the path to the example configuration file which comes with
93
# NZBGet. Web-interface needs this file to read option descriptions.
95
# Do not put here your actual configuration file (typically stored
96
# in your home directory or in /etc/nzbget.conf) but instead the unchanged
97
# example configuration file (typically installed to
98
# /usr/local/share/nzbget/nzbget.conf).
100
# Example: /usr/local/share/nzbget/nzbget.conf.
104
##############################################################################
107
# This section defines which servers NZBGet should connect to.
109
# The servers should be numbered subsequently without holes.
110
# For example if you configure three servers you should name them as Server1,
111
# Server2 and Server3. If you need to delete Server2 later you should also
112
# change the name of Server3 to Server2. Otherwise it will not be properly
113
# read from the config file. Server number doesn't affect its priority (level).
115
# Level (priority) of news server (0-99).
117
# The servers are ordered by their level. NZBGet first tries to download
118
# an article from one (any) of level-0-servers. If that server fails,
119
# NZBGet tries all other level-0-servers. If all servers fail, it proceeds
120
# with the level-1-servers, etc.
122
# Put your major download servers at level 0 and your fill servers at
125
# Several servers with the same level may be defined, they have
129
# Group of news server (0-99).
131
# If you have multiple accounts with same conditions (retention, etc.)
132
# on the same news server, set the same group (greater than 0) for all
133
# of them. If download fails on one news server, NZBGet does not try
134
# other servers from the same group.
136
# Value "0" means no group defined (default).
139
# Host name of news server.
140
Server1.Host=my.newsserver.com
142
# Port to connect to (1-65535).
145
# User name to use for authentication.
146
Server1.Username=user
148
# Password to use for authentication.
149
Server1.Password=pass
151
# Server requires "Join Group"-command (yes, no).
154
# Encrypted server connection (TLS/SSL) (yes, no).
156
# NOTE: By changing this option you should also change the option <ServerX.Port>
157
# accordingly because unsecure and encrypted connections use different ports.
158
Server1.Encryption=no
160
# Cipher to use for encrypted server connection.
162
# By default (when the option is empty) the underlying encryption library
163
# chooses the cipher automatically. To achieve the best performance
164
# however you can manually select a faster cipher.
166
# See http://nzbget.sourceforge.net/Choosing_a_cipher for details.
168
# NOTE: One of the fastest cipher is RC4, it also provides strong 128 bit
169
# encryption. To select it use the cipher string "RC4-MD5" (if NZBGet was
170
# configured to use OpenSSL) or "NONE:+VERS-TLS-ALL:+ARCFOUR-128:+RSA:+MD5:+COMP-ALL"
171
# (if NZBGet was configured to use GnuTLS).
173
# NOTE: You may get a TLS handshake error if the news server does
174
# not support the chosen cipher. You can also get an error "Could not
175
# select cipher for TLS" if the cipher string is not valid.
178
# Maximum number of simultaneous connections to this server (0-999).
179
Server1.Connections=4
181
# Second server, on level 0.
184
#Server2.Host=my2.newsserver.com
187
#Server2.Password=mypass
188
#Server2.JoinGroup=yes
189
#Server2.Connections=4
191
# Third server, on level 1.
194
#Server3.Host=fills.newsserver.com
196
#Server3.Username=me2
197
#Server3.Password=mypass2
198
#Server3.JoinGroup=yes
199
#Server3.Connections=1
202
##############################################################################
203
### REMOTE CONTROL ###
205
# IP on which NZBGet server listen and which clients use to contact NZBGet.
207
# It could be a dns-hostname (e. g. "mypc") or an ip-address (e. g. "192.168.1.2" or
208
# "127.0.0.1"). An IP-address is more effective because does not require dns-lookup.
210
# Your computer may have multiple network interfaces and therefore multiple IP
211
# addresses. If you want NZBGet to listen to all interfaces and be available from
212
# all IP-addresses use value "0.0.0.0".
214
# NOTE: When you start NZBGet as client (to send remote commands to NZBGet server) and
215
# the option <ControlIP> is set to "0.0.0.0" the client will use IP "127.0.0.1".
217
# NOTE: If you set the option to "127.0.0.1" you will be able to connect to NZBGet
218
# only from the computer running NZBGet. This restriction applies to web-interface too.
221
# Port which NZBGet server and remote client use (1-65535).
223
# NOTE: The communication via this port is not encrypted. For encrypted
224
# communication see option <SecurePort>.
227
# User name which NZBGet server and remote client use.
229
# Set to empty value to disable user name check (check only password).
231
# NOTE: this option was added in NZBGet 11. Older versions used predefined
232
# not changeable user name "nzbget". Third-party tools or web-sites written
233
# for older NZBGet versions may not have an option to define user name. In
234
# this case you should set option <ControlUsername> to the default value
235
# "nzbget" or use empty value.
236
ControlUsername=nzbget
238
# Password which NZBGet server and remote client use.
240
# Set to empty value to disable authorization request.
241
ControlPassword=tegbzn6789
243
# Secure control of NZBGet server (yes, no).
245
# Activate the option if you want to access NZBGet built-in web-server
246
# via HTTPS (web-interface and RPC). You should also provide certificate
247
# and key files, see option <SecureCert> and option <SecureKey>.
250
# Port which NZBGet server and remote client use for encrypted
251
# communication (1-65535).
254
# Full path to certificate file for encrypted communication.
257
# Full path to key file for encrypted communication.
261
##############################################################################
264
# User name for daemon-mode, POSIX only.
266
# Set the user that the daemon normally runs at (POSIX in daemon-mode only).
267
# Set MainDir with an absolute path to be sure where it will write.
268
# This allows NZBGet daemon to be launched in rc.local (at boot), and
269
# download items as a specific user id.
271
# NOTE: This option has effect only if the program was started from
272
# root-account, otherwise it is ignored and the daemon runs under
276
# Specify default umask (affects file permissions) for newly created
277
# files, POSIX only (000-1000).
279
# The value should be written in octal form (the same as for "umask" shell
281
# Empty value or value "1000" disable the setting of umask-mode; current
282
# umask-mode (set via shell) is used in this case.
286
##############################################################################
287
### INCOMING NZBS ###
289
# Create subdirectory with category-name in destination-directory (yes, no).
290
AppendCategoryDir=yes
292
# How often incoming-directory (option <NzbDir>) must be checked for new
293
# nzb-files (seconds).
295
# Value "0" disables the check.
298
# How old nzb-file should at least be for it to be loaded to queue (seconds).
300
# NZBGet checks if nzb-file was not modified in last few seconds, defined by
301
# this option. That safety interval prevents the loading of files, which
302
# were not yet completely saved to disk, for example if they are still being
303
# downloaded in web-browser.
306
# Automatic merging of nzb-files with the same filename (yes, no).
308
# A typical scenario: you put nzb-file into incoming directory, NZBGet adds
309
# file to queue. You find out, that the file doesn't have par-files. You
310
# find required par-files, put nzb-file with the par-files into incoming
311
# directory, NZBGet adds it to queue as a separate group. You want the second
312
# file to be merged with the first for parchecking to work properly. With
313
# option "MergeNzb" NZBGet can merge files automatically. You only need to
314
# save the second file under the same filename as the first one.
317
# Set path to program, that must be executed before a nzb-file is added
320
# This program is called each time a new file is found in incoming
321
# directory (option <NzbDir>) or a file is received via RPC (web-interface,
322
# command "nzbget --append", etc.).
324
# Example: ~/nzbprocess.sh.
326
# That program can unpack archives which were put in incoming directory, make
327
# filename cleanup, change nzb-name, category, priority and post-processing
328
# parameters of the nzb-file or do other things.
330
# INFO FOR DEVELOPERS:
331
# NZBGet passes following arguments to nzbprocess-program as environment
333
# NZBNP_DIRECTORY - path to directory, where file is located. It is a directory
334
# specified by the option <NzbDir> or a subdirectory;
335
# NZBNP_FILENAME - name of file to be processed;
336
# NZBNP_NZBNAME - nzb-name (without path but with extension);
337
# NZBNP_CATEGORY - category of nzb-file;
338
# NZBNP_PRIORITY - priority of nzb-file;
339
# NZBNP_TOP - flag indicating that the file will be added to the top
341
# NZBNP_PAUSED - flag indicating that the file will be added as
344
# In addition to these arguments NZBGet passes all
345
# nzbget.conf-options to nzbprocess-program as environment variables. These
346
# variables have prefix "NZBOP_" and are written in UPPER CASE. For Example
347
# option "ParRepair" is passed as environment variable "NZBOP_PARREPAIR".
348
# The dots in option names are replaced with underscores, for example
349
# "SERVER1_HOST". For options with predefined possible values (yes/no, etc.)
350
# the values are passed always in lower case.
352
# The nzbprocess-script can change nzb-name, category, priority,
353
# post-processing parameters and top-/paused-flags of the nzb-file
354
# by printing special messages into standard output (which is processed
357
# To change nzb-name use following syntax:
358
# echo "[NZB] NZBNAME=my download";
360
# To change category:
361
# echo "[NZB] CATEGORY=my category";
363
# To change priority:
364
# echo "[NZB] PRIORITY=signed_integer_value";
366
# for example: to set priority higher than normal:
367
# echo "[NZB] PRIORITY=50";
369
# another example: use a negative value for "lower than normal" priority:
370
# echo "[NZB] PRIORITY=-100";
372
# Although priority can be any integer value, the web-interface operates
373
# with five predefined priorities:
374
# -100 - very low priority;
375
# -50 - low priority;
376
# 0 - normal priority (default);
377
# 50 - high priority;
378
# 100 - very high priority.
380
# To assign post-processing parameters:
381
# echo "[NZB] NZBPR_myvar=my value";
383
# The prefix "NZBPR_" will be removed. In this example a post-processing
384
# parameter with name "myvar" and value "my value" will be associated
387
# To change top-flag (nzb-file will be added to the top of queue):
388
# echo "[NZB] TOP=1";
390
# To change paused-flag (nzb-file will be added in paused state):
391
# echo "[NZB] PAUSED=1";
393
# The nzbprocess-script can delete processed file, rename it or move somewhere.
394
# After the calling of the script the file will be either added to queue
395
# (if it was an nzb-file) or renamed by adding the extension ".processed".
397
# NOTE: Files with extensions ".processed", ".queued" and ".error" are skipped
398
# during the directory scanning.
400
# NOTE: Files with extension ".nzb_processed" are not passed to
401
# NzbProcess-script before adding to queue. This feature allows
402
# NzbProcess-script to prevent the scanning of nzb-files extracted from
403
# archives, if they were already processed by the script.
405
# NOTE: Files added via RPC calls in particular from web-interface are
406
# saved into incoming nzb-directory and then processed by the script.
409
# Set path to program, that must be executed after a nzb-file is added
412
# This program is called each time a new nzb-file is added to queue.
414
# Example: ~/nzbaddedprocess.sh.
416
# That program can modify the files in download queue (for example
417
# delete or pause all nfo, sfv, sample files) or do something else.
419
# INFO FOR DEVELOPERS:
420
# NZBGet passes following arguments to nzbaddedprocess-program as environment
422
# NZBNA_NZBNAME - name of nzb-group. This name can be used in calls
423
# to nzbget edit-command using subswitch "-GN name";
424
# NZBNA_FILENAME - filename of the nzb-file. If the file was added
425
# from nzb-directory this is the fullname with path.
426
# If the file was added via web-interface it contains
427
# only filename without path;
428
# NZBNA_CATEGORY - category of nzb-file (if assigned);
429
# NZBNA_LASTID - the id of the last file in the nzb-file. This ID can
430
# be used with calls to nzbget edit-command;
431
# NZBNA_PRIORITY - priority (default is 0).
433
# In addition to these arguments NZBGet passes all
434
# nzbget.conf-options to nzbaddedprocess-program as environment variables. These
435
# variables have prefix "NZBOP_" and are written in UPPER CASE. For Example
436
# option "ParRepair" is passed as environment variable "NZBOP_PARREPAIR".
437
# The dots in option names are replaced with underscores, for example
438
# "SERVER1_HOST". For options with predefined possible values (yes/no, etc.)
439
# the values are passed always in lower case.
442
# 1) pausing nzb-file using file-id:
443
# "$NZBOP_APPBIN" -c "$NZBOP_CONFIGFILE" -E G P $NZBNA_LASTID;
444
# 2) setting category using nzb-name:
445
# "$NZBOP_APPBIN" -c "$NZBOP_CONFIGFILE" -E GN K "my cat" "$NZBNA_NZBNAME";
446
# 3) pausing files with extension "nzb":
447
# "$NZBOP_APPBIN" -c "$NZBOP_CONFIGFILE" -E FR P "$NZBNA_NZBNAME/.*\.nzb";
450
# Check for duplicate files (yes, no).
452
# If this option is enabled the program checks by adding of a new nzb-file:
453
# 1) if nzb-file contains duplicate entries. This check aims on detecting
454
# of reposted files (if first file was not fully uploaded).
455
# If the program find two files with identical names, only the
456
# biggest of these files will be added to queue;
457
# 2) if download queue already contains file with the same name;
458
# 3) if destination file on disk already exists.
459
# In last two cases: if the file exists it will not be added to queue.
461
# If this option is disabled, all files are downloaded and duplicate files
462
# are renamed to "filename_duplicate1".
463
# Existing files are never deleted or overwritten.
467
##############################################################################
468
### DOWNLOAD QUEUE ###
470
# Save download queue to disk (yes, no).
472
# This allows to reload it on next start.
475
# Reload download queue on start, if it exists (yes, no).
478
# Reload url-queue on start, if it exists (yes, no).
480
# For this option to work the options <SaveQueue> and <ReloadQueue> must
484
# Reload Post-processor-queue on start, if it exists (yes, no).
486
# For this option to work the options <SaveQueue> and <ReloadQueue> must
490
# Reuse articles saved in temp-directory from previous program start (yes, no).
492
# This allows to continue download of file, if program was exited before
493
# the file was completed.
496
# Decode articles (yes, no).
498
# yes - decode articles using internal decoder (supports yEnc and UU formats);
499
# no - the articles will not be decoded and joined. Useful for debugging to
500
# look at article's source text.
503
# Write decoded articles directly into destination output file (yes, no).
505
# Files are posted to Usenet within artilce bodies. Each file typically
506
# requires hundreds of articles.
508
# When option <DirectWrite> is disabled, the program downloads all articles
509
# into temporary directory and then combine them into destination file.
511
# With this option enabled the program at first creates the output
512
# destination file with required size (total size of all articles),
513
# then writes on the fly decoded articles directly to the file
514
# without creating of any temporary files.
516
# This may improve performance but depends on OS and file system ability to
517
# instantly create large files without initializing them with nulls. Such
518
# files are called sparse files and are supported by modern file systems
519
# like EXT3 on Linux or NTFS on Windows.
521
# Using of this option reduces disk operations but may produce more fragmented
522
# files (depends on disk driver), which may slow down the post-processing.
523
# It's recommended to test how the option behave on your platform to find the
526
# INFO: a particular test on a Linux router with EXT3-partition showed that
527
# activating of this option results in up to 20% better performance during
530
# NOTE: For test try to download few big nzb-collections (each 4GB or more)
531
# and measure the time used for downloading and post-processing (use timestamps
532
# in a log-file to determine when the post-processing was ended).
534
# NOTE: When option <DirectWrite> is enabled the temporary directory (option
535
# <TempDir>) must be located on the same partition with destination directory
536
# (option DestDir>) for better performance. If option <DirectWrite> is disabled
537
# it's better to use different drives for temporary and destination directories.
539
# NOTE: If both options <DirectWrite> and <ContinuePartial> are enabled,
540
# the program still creates empty article-files in temp-directory. They are used
541
# by the option <ContinuePartial> to check if a certain article was downloaded.
542
# To minimize disk-io it is recommended to disable option <ContinuePartial>,
543
# if <DirectWrite> is enabled. Especially on a fast connections (where you
544
# would want to activate <DirectWrite>) it should not be a problem to redownload
545
# an interrupted file.
548
# Check CRC of downloaded and decoded articles (yes, no).
550
# Normally this option should be enabled for better detecting of download
551
# errors. However checking of CRC needs CPU time. On a fast connection and
552
# slow CPU disabling of CRC-Check may improve performance.
555
# How many retries should be attempted if a download error occurs (0-99).
557
# 1) If download fails because of "article or group not found error" the
558
# program tries another news server.
560
# 2) If download fails because of interrupted connection, the program
561
# tries the same server again until connection can be established.
563
# In both cases 1) and 2) option <Retries> is not used.
565
# If download however fails because of incomplete article, CRC-error or other
566
# error not mentioned above the program tries to redownload the article from
567
# the same news server as many times as defined in option <Retries>. If all
568
# attempts fail the program tries another news server.
571
# Set the interval between retries (seconds).
574
# Set connection timeout (seconds).
577
# Timeout until a download-thread should be killed (seconds).
579
# This can help on hanging downloads, but is dangerous.
580
# Do not use small values!
583
# Set the maximum download rate on program start (kilobytes/sec).
585
# Value "0" means no speed control.
586
# The download rate can be changed later via remote calls.
589
# Accurate speed rate calculation (yes, no).
591
# During downloading using several connections the download threads may
592
# interfere with each other when updating statistical data for speed
593
# meter. This may cause small errors in current download speed reported
594
# by the program. The speed meter recovers automatically from such errors
595
# after max. 30 seconds (time window used for speed calculation).
597
# Enable the option to use thread synchronisation mechanisms in order to
598
# provide absolutely accurate speed calculations.
600
# NOTE: Thread synchronisation increases CPU load and therefore can
601
# decrease download speed. Do not activate this option on computers with
602
# limited CPU power. Before activating the option it is recommended to
603
# run tests to determine how the option affects the CPU usage and the
604
# download speed on a particular system.
607
# Set the size of memory buffer used by writing the articles (bytes).
609
# Bigger values decrease disk-io, but increase memory usage.
610
# Value "0" causes an OS-dependent default value to be used.
611
# With value "-1" (which means "max/auto") the program sets the size of
612
# buffer according to the size of current article (typically less than 500K).
614
# NOTE: The value must be written in bytes, do not use postfixes "K" or "M".
616
# NOTE: To calculate the memory usage multiply WriteBufferSize by max number
617
# of connections, configured in section "NEWS-SERVERS".
619
# NOTE: Typical article's size not exceed 500000 bytes, so using bigger values
620
# (like several megabytes) will just waste memory.
622
# NOTE: For desktop computers with large amount of memory value "-1" (max/auto)
623
# is recommended, but for computers with very low memory (routers, NAS)
624
# value "0" (default OS-dependent size) could be better alternative.
626
# NOTE: Write-buffer is managed by OS (system libraries) and therefore
627
# the effect of the option is highly OS-dependent.
630
# Pause if disk space gets below this value (megabytes).
632
# Value "0" disables the check.
633
# Only the disk space on the drive with <DestDir> is checked.
634
# The drive with <TempDir> is not checked.
637
# Delete already downloaded files from disk, if the download of nzb-file was
638
# cancelled (nzb-file was deleted from queue) (yes, no).
640
# NOTE: NZBGet does not delete files in a case if all remaining files in
641
# queue are par-files. That prevents the accidental deletion if the option
642
# <ParCleanupQueue> is disabled or if the program was interrupted during
643
# parcheck and later restarted without reloading of post queue (option
644
# <ReloadPostQueue> disabled).
647
# Keep the history of downloaded nzb-files (days).
649
# Value "0" disables the history.
651
# NOTE: When a collection having paused files is added to history all remaining
652
# files are moved from download queue to a list of parked files. It holds files
653
# which could be required later if the collection will be moved back to
654
# download queue for downloading of remaining files. The parked files still
655
# consume some amount of memory and disk space. If the collection was downloaded
656
# and successfully par-checked or postprocessed it is recommended to discard the
657
# unneeded parked files before adding the collection to history. For par2-files
658
# that can be achieved with the option <ParCleanupQueue>.
661
# Maximum number of simultaneous connections for nzb URL downloads (0-999).
663
# When NZB-files are added to queue via URL, the program downloads them
664
# from the specified URL. The option limits the maximal number of connections
665
# used for this purpose, when multiple URLs were added at the same time.
669
##############################################################################
672
# This section defines categories available in web-interface.
676
# Each nzb-file can be assigned to a category.
677
# Category name is passed to post-processing script and can be used by it
678
# to perform category specific processing.
679
Category1.Name=Movies
681
# Destination directory for this category.
683
# If this option is empty, then the default destination directory
684
# (option <DestDir>) is used. In this case if the option <AppendCategoryDir>
685
# is active, the program creates a subdirectory with category name within
686
# destination directory.
689
# Default list of post-processing scripts.
691
# For more information see global option <DefScript>.
694
Category2.Name=Series
696
Category4.Name=Software
699
##############################################################################
702
# Create log file (yes, no).
705
# Delete log file upon server start (only in server-mode) (yes, no).
708
# How error messages must be printed (screen, log, both, none).
711
# How warning messages must be printed (screen, log, both, none).
714
# How info messages must be printed (screen, log, both, none).
717
# How detail messages must be printed (screen, log, both, none).
720
# How debug messages must be printed (screen, log, both, none).
722
# Debug-messages can be printed only if the program was compiled in
723
# debug-mode: "./configure --enable-debug".
726
# Number of messages stored in buffer and available for remote
727
# clients (messages).
730
# Create a log of all broken files (yes ,no).
732
# It is a text file placed near downloaded files, which contains
733
# the names of broken files.
736
# Create memory dump (core-file) on abnormal termination, Linux only (yes, no).
738
# Core-files are very helpful for debugging.
740
# NOTE: Core-files may contain sensible data, like your login/password to
744
# See also option <LogFile> in section "PATHS"
747
##############################################################################
748
### DISPLAY (TERMINAL) ###
750
# Set screen-outputmode (loggable, colored, curses).
752
# loggable - only messages will be printed to standard output;
753
# colored - prints messages (with simple coloring for messages categories)
754
# and download progress info; uses escape-sequences to move cursor;
755
# curses - advanced interactive interface with the ability to edit
756
# download queue and various output option.
759
# Shows NZB-Filename in file list in curses-outputmode (yes, no).
761
# This option controls the initial state of curses-frontend,
762
# it can be switched on/off in run-time with Z-key.
765
# Show files in groups (NZB-files) in queue list in curses-outputmode (yes, no).
767
# This option controls the initial state of curses-frontend,
768
# it can be switched on/off in run-time with G-key.
771
# Show timestamps in message list in curses-outputmode (yes, no).
773
# This option controls the initial state of curses-frontend,
774
# it can be switched on/off in run-time with T-key.
777
# Update interval for Frontend-output in console mode or remote client
778
# mode (milliseconds).
780
# Min value 25. Bigger values reduce CPU usage (especially in curses-outputmode)
781
# and network traffic in remote-client mode.
785
##############################################################################
788
# This section defines scheduler commands.
789
# For each command create a set of options <TaskX.Time>, <TaskX.Command>,
790
# <TaskX.WeekDays> and <TaskX.DownloadRate>.
791
# The following example shows how to throttle downloads in the daytime
792
# by 100 KB/s and download at full speed overnights:
794
# Time to execute the command (HH:MM).
796
# Multiple comma-separated values are accepted.
797
# Asterix as hours-part means "every hour".
799
# Examples: "08:00", "00:00,06:00,12:00,18:00", "*:00", "*:00,*:30".
802
# Week days to execute the command (1-7).
804
# Comma separated list of week days numbers.
806
# Character '-' may be used to define ranges.
808
# Examples: "1-7", "1-5", "5,6", "1-5, 7".
811
# Command to be executed (DownloadRate, PauseDownload, UnpauseDownload, PauseScan,
812
# UnpauseScan, Process).
815
# DownloadRate - sets download rate in KB/s;
816
# PauseDownload - pauses download;
817
# UnpauseDownload - resumes download;
818
# PauseScan - pauses scan of incoming nzb-directory;
819
# UnpauseScan - resumes scan of incoming nzb-directory;
820
# Process - executes external program.
821
#Task1.Command=DownloadRate
823
# Download rate to be set if the command is "DownloadRate" (kilobytes/sec).
825
# Value "0" means no speed control.
827
# If the option <TaskX.Command> is not set to "DownloadRate" this option
828
# is ignored and can be omitted.
829
#Task1.DownloadRate=100
831
# Path to the program to execute if the command is "Process".
833
# Example: /home/user/fetch-nzb.sh.
835
# If the option <TaskX.Command> is not set to "Process" this option
836
# is ignored and can be omitted.
838
# NOTE: It's allowed to add parameters to command line. If filename or
839
# any parameter contains spaces it must be surrounded with single quotation
840
# marks. If filename/parameter contains single quotation marks, each of them
841
# must be replaced with two single quotation marks and the resulting filename/
842
# parameter must be surrounded with single quotation marks.
843
# Example: '/home/user/download/my scripts/task process.sh' 'world''s fun'.
844
# In this example one parameter (world's fun) is passed to the script
846
#Task1.Process=/home/user/script.sh
850
#Task2.Command=DownloadRate
851
#Task2.DownloadRate=0
854
##############################################################################
855
### PAR CHECK/REPAIR ###
857
# Whether and how par-verification must be performed (auto, force, manual).
859
# Auto - par-check is performed when needed. One par2-file is always
860
# downloaded. Additional par2-files are downloaded if needed
861
# for repair. Repair is performed if the option <ParRepair>
863
# Force - force par-check for every download (even undamaged). All
864
# par2-files are always downloaded. Repair is performed if
865
# the option <ParRepair> is enabled;
866
# Manual - par-check is skipped. One par2-file is always
867
# downloaded. If a damaged download is detected, all
868
# par2-files are downloaded but neithet par-check nor par-repair
869
# take place. The download can be then repaired manually
870
# (possibly on another, faster computer).
873
# Automatic par-repair after par-verification (yes, no).
875
# If option <ParCheck> is set to "Auto" or "Force" this option defines
876
# if the download must be repaired when needed. The option can be
877
# disabled if computer does not have enough CPU power, since repairing
878
# may take too much resources and time on a slow computers.
881
# What files should be scanned during par-verification (limited,
884
# Limited - scan only files belonging to the par-set;
885
# Full - scan all files in the directory. This helps if the
886
# files were renamed after creating of par-set;
887
# Auto - a limited scan is performed first. If the par-checker
888
# detects missing files, it scans other files in the
889
# directory until all required files are found.
891
# NOTE: for par-check/repair NZBGet uses library libpar2. The last and
892
# widely used version 0.2 of the library has few bugs, sometimes causing
893
# a crash of the program. This is especially true when using "full" or
894
# "auto" par-scan. NZBGet is supplied with patches addressing these
895
# issues. Please apply the patches to libpar2 and recompile it.
898
# Use only par2-files with matching names (yes, no).
900
# If par-check needs extra par-blocks it looks for paused par2-files
901
# in the download queue. These par2-files should have the same base name
902
# as the main par2-file, currently loaded in par-checker. Sometimes extra
903
# par2-files have non-matching names (especially if they were uploaded
904
# by a different poster). Normally par-checker does not use these files, but
905
# you can allow it to use them by setting <StrictParName> to "no".
906
# There is a small side effect then: if NZB-file contains more than one
907
# collection of files (with different par-sets), par-checker may download
908
# par2-files from a wrong collection and will need to unpause other
909
# par2-files until all required files are downloaded. This increases the
910
# traffic (but not harm the par-check).
912
# NOTE: Par-checker always uses only par-files added from the same NZB-file
913
# and the option <StrictParName> does not change this behavior.
916
# Maximum allowed time for par-repair (minutes).
918
# Value "0" means unlimited.
920
# If you use NZBGet on a very slow computer like NAS-device, it may be good to
921
# limit the time allowed for par-repair. NZBGet calculates the estimated time
922
# required for par-repair. If the estimated value exceeds the limit defined
923
# here, NZBGet cancels the repair.
925
# To avoid a false cancellation NZBGet compares the estimated time with
926
# <ParTimeLimit> after the first 5 minutes of repairing, when the calculated
927
# estimated time is more or less accurate. But in a case if <ParTimeLimit> is
928
# set to a value smaller than 5 minutes, the comparison is made after the first
931
# NOTE: The option limits only the time required for repairing. It doesn't
932
# affect the first stage of parcheck - verification of files. However the
933
# verification speed is constant, it doesn't depend on files integrity and
934
# therefore it is not necessary to limit the time needed for the first stage.
936
# NOTE: This option requires an extended version of libpar2 (the original
937
# version doesn't support the cancelling of repairing). Please refer to
938
# NZBGet's README for info on how to apply the patch to libpar2.
941
# Pause download queue during check/repair (yes, no).
943
# Enable the option to give CPU more time for par-check/repair. That helps
944
# to speed up check/repair on slow CPUs with fast connection (e.g. NAS-devices).
946
# NOTE: If parchecker needs additional par-files it temporarily unpauses
949
# NOTE: See also options <ScriptPauseQueue> and <UnpackPauseQueue>.
952
# Cleanup download queue after successful check/repair (yes, no).
954
# Enable this option for automatic deletion of unneeded (paused) par-files
955
# from download queue after successful check/repair.
958
# Delete source nzb-file after successful check/repair (yes, no).
960
# Enable this option for automatic deletion of nzb-file from incoming directory
961
# after successful check/repair.
964
# Files to delete after successful check/repair.
966
# List of file extensions or file names to delete after successful
967
# check/repair. The entries must be separated with commas. The entries
968
# can be file extensions or any text the file name may end with.
970
# Example: .par2, .sfv
971
ExtCleanupDisk=.par2, .sfv, _brokenlog.txt
974
##############################################################################
977
# Unpack downloaded nzb-files (yes, no).
979
# If the download is damaged and could not be repaired using par-files
980
# the unpacking is not performed.
982
# If the option <ParCheck> is disabled the program will try to unpack
983
# downloaded files first. If the unpacking fails the par-check/repair
984
# is performed and the unpack will be executed again.
987
# Pause download queue during unpack (yes, no).
989
# Enable the option to give CPU more time for unpacking. That helps
990
# to speed up unpacking on slow CPUs.
992
# NOTE: See also options <ParPauseQueue> and <ScriptPauseQueue>.
995
# Delete archive files after successful unpacking (yes, no).
996
UnpackCleanupDisk=yes
998
# Full path to unrar executable.
1000
# Example: /usr/bin/unrar.
1002
# If unrar is in your PATH you may leave the path part and set only
1003
# the executable name ("unrar" on POSIX or "unrar.exe" on Windows).
1006
# Full path to 7-Zip executable.
1008
# Example: /usr/bin/7z.
1010
# If 7-Zip binary is in your PATH you may leave the path part and set only
1011
# the executable name ("7z" or "7za" on POSIX or "7z.exe" on Windows).
1015
##############################################################################
1016
### POST-PROCESSING SCRIPTS ###
1018
# Default list of post-processing scripts to execute after the download
1019
# of nzb-file is completed and possibly par-checked/repaired and unpacked,
1020
# depending on other options.
1022
# The scripts in the list must be separated with commas or semicolons. Only
1023
# filenames without path must be used. All scripts must be stored in directory
1024
# pointed by option <ScriptDir>.
1026
# Example: Cleanup.sh, Move.sh, EMail.py.
1028
# Each download (nzb-file) has its own list of post-processing scripts. The option
1029
# <DefScript> is the default value assigned to download when it is added to
1030
# queue. The list of post-processing scripts for a particular download can be
1031
# changed in the edit dialog in web-interface or using remote command "--edit/-E".
1033
# When nzb-file is added to queue it can have a category assigned to it. In this
1034
# case the option <CategoryX.DefScript> (if not empty) overrides the
1035
# global option <DefScript>.
1037
# NOTE: The script execution order is controlled by option <ScriptOrder>, not
1038
# by their order in option <DefScript>.
1040
# NOTE: Changing options <DefScript> and <CategoryX.DefScript> doesn't affect
1041
# already queued downloads.
1043
# NOTE: For the list of interesting post-processing scripts see
1044
# http://nzbget.sourceforge.net/Catalog_of_post-processing_scripts.
1046
# INFO FOR DEVELOPERS:
1047
# NOTE: This is a short documentation, for more information visit
1048
# http://nzbget.sourceforge.net/Post-processing_scripts.
1050
# NZBGet passes following arguments to post-processing script as environment
1052
# NZBPP_DIRECTORY - path to destination dir for downloaded files;
1053
# NZBPP_NZBNAME - user-friendly name of processed nzb-file as it is displayed
1054
# by the program. The file path and extension are removed.
1055
# If download was renamed, this parameter reflects the new name;
1056
# NZBPP_NZBFILENAME - name of processed nzb-file. It includes file extension and also
1057
# may include full path;
1058
# NZBPP_CATEGORY - category assigned to nzb-file (can be empty string);
1059
# NZBPP_PARSTATUS - result of par-check:
1060
# 0 = not checked: par-check is disabled or nzb-file does
1061
# not contain any par-files;
1062
# 1 = checked and failed to repair;
1063
# 2 = checked and successfully repaired;
1064
# 3 = checked and can be repaired but repair is disabled;
1065
# 4 = par-check needed but skipped (option ParCheck=manual);
1066
# NZBPP_UNPACKSTATUS - result of unpack:
1067
# 0 = unpack is disabled or was skipped due to nzb-file
1068
# properties or due to errors during par-check;
1069
# 1 = unpack failed;
1070
# 2 = unpack successful.
1072
# If the script defines own options they are also passed as environment
1073
# variables. These variables have prefix "NZBPO_" in their names. For
1074
# example, option "myoption" will be passed as environment variable
1075
# "NZBPO_myoption" and in addition in uppercase as "NZBPO_MYOPTION".
1077
# If the script defines own post-processing parameters, they are also passed as
1078
# environment variables. These variables have prefix "NZBPR_" in their
1079
# names. For example, pp-parameter "myparam" will be passed as environment
1080
# variable "NZBPR_myparam" and in addition in uppercase as "NZBPR_MYPARAM".
1082
# In addition to arguments, pp-options and pp-parameters NZBGet passes all
1083
# nzbget.conf-options to pp-script as environment variables. These
1084
# variables have prefix "NZBOP_" and are written in UPPER CASE. For Example
1085
# option "ParRepair" is passed as environment variable "NZBOP_PARREPAIR". The
1086
# dots in option names are replaced with underscores, for example
1087
# "SERVER1_HOST". For options with predefined possible values (yes/no, etc.)
1088
# the values are passed always in lower case.
1090
# Return value: NZBGet processes the exit code returned by the script:
1091
# 93 - post-process successful (status = SUCCESS);
1092
# 94 - post-process failed (status = FAILURE);
1093
# 95 - post-process skipped (status = NONE). Use this code when you script
1094
# terminates immediateley without doing any job and when this is not
1095
# a failure termination;
1096
# 92 - request NZBGet to do par-check/repair for current nzb-file.
1098
# All other return codes are interpreted as failure (status = FAILURE).
1100
# NOTE: This is a short documentation, for more information visit
1101
# http://nzbget.sourceforge.net/Post-processing_scripts.
1104
# Execution order for scripts.
1106
# If you assign multiple scripts to one nzb-file, they are executed in the
1107
# order defined by this option. Scripts not listed here are executed at
1108
# the end in their alphabetical order.
1110
# The scripts in the list must be separated with commas or semicolons. Only
1111
# filenames without path must be used. All scripts must be stored in directory
1112
# pointed by option <ScriptDir>.
1114
# Example: Cleanup.sh, Move.sh.
1117
# Pause download queue during executing of postprocess-script (yes, no).
1119
# Enable the option to give CPU more time for postprocess-script. That helps
1120
# to speed up postprocess on slow CPUs with fast connection (e.g. NAS-devices).
1122
# NOTE: See also options <ParPauseQueue> and <UnpackPauseQueue>.