Advertisement
Guest User

Untitled

a guest
Apr 12th, 2016
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 50.19 KB | None | 0 0
  1. # Sample configuration file for NZBGet
  2. #
  3. # On POSIX put this file to one of the following locations:
  4. # ~/.nzbget
  5. # /etc/nzbget.conf
  6. # /usr/etc/nzbget.conf
  7. # /usr/local/etc/nzbget.conf
  8. # /opt/etc/nzbget.conf
  9. #
  10. # On Windows put this file in program's directory.
  11. #
  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
  15.  
  16. # For quick start change the option MainDir and configure one news-server
  17.  
  18.  
  19. ##############################################################################
  20. ### PATHS ###
  21.  
  22. # Root directory for all tasks.
  23. #
  24. # On POSIX you can use "~" as alias for home directory (e.g. "~/download").
  25. # On Windows use absolute paths (e.g. "C:\Download").
  26. MainDir=~/downloads
  27.  
  28. # Destination directory for downloaded files.
  29. #
  30. # If you want to distinguish between partially downloaded files and
  31. # completed downloads, use also option <InterDir>.
  32. DestDir=${MainDir}/dst
  33.  
  34. # Directory to store intermediate files.
  35. #
  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.
  41. #
  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
  45. # hard drives.
  46. #
  47. # NOTE: If the option <InterDir> is set to empty value the downloaded
  48. # files are put directly to destination directory (option <DestDir>).
  49. InterDir=
  50.  
  51. # Directory to monitor for incoming nzb-jobs.
  52. #
  53. # Can have subdirectories.
  54. # A nzb-file queued from a subdirectory will be automatically assigned to
  55. # category with the directory-name.
  56. NzbDir=${MainDir}/nzb
  57.  
  58. # Directory to store download queue.
  59. QueueDir=${MainDir}/queue
  60.  
  61. # Directory to store temporary files.
  62. TempDir=${MainDir}/tmp
  63.  
  64. # Directory with web-interface files.
  65. #
  66. # Example: /usr/local/share/nzbget/webui.
  67. #
  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.
  71. WebDir=
  72.  
  73. # Directory with post-processing scripts.
  74. #
  75. # NOTE: For information on writing post-processing scripts visit
  76. # http://nzbget.sourceforge.net/Post-processing_scripts.
  77. ScriptDir=${MainDir}/ppscripts
  78.  
  79. # Lock-file for daemon-mode, POSIX only.
  80. #
  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
  84.  
  85. # Where to store log file, if it needs to be created.
  86. #
  87. # NOTE: See also option <CreateLog>.
  88. LogFile=${DestDir}/nzbget.log
  89.  
  90. # Configuration file template.
  91. #
  92. # Put the path to the example configuration file which comes with
  93. # NZBGet. Web-interface needs this file to read option descriptions.
  94. #
  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).
  99. #
  100. # Example: /usr/local/share/nzbget/nzbget.conf.
  101. ConfigTemplate=
  102.  
  103.  
  104. ##############################################################################
  105. ### NEWS-SERVERS ###
  106.  
  107. # This section defines which servers NZBGet should connect to.
  108. #
  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).
  114.  
  115. # Use this news server (yes, no).
  116. #
  117. # Set to "no" to temporary disable the server.
  118. Server1.Active=yes
  119.  
  120. # Name of news server.
  121. #
  122. # The name is used in UI and for logging. It can be any string, you
  123. # may even leave it empty.
  124. Server1.Name=
  125.  
  126. # Level (priority) of news server (0-99).
  127. #
  128. # The servers are ordered by their level. NZBGet first tries to download
  129. # an article from one (any) of level-0-servers. If that server fails,
  130. # NZBGet tries all other level-0-servers. If all servers fail, it proceeds
  131. # with the level-1-servers, etc.
  132. #
  133. # Put your major download servers at level 0 and your fill servers at
  134. # levels 1, 2, etc..
  135. #
  136. # Several servers with the same level may be defined, they have
  137. # the same priority.
  138. Server1.Level=0
  139.  
  140. # Group of news server (0-99).
  141. #
  142. # If you have multiple accounts with same conditions (retention, etc.)
  143. # on the same news server, set the same group (greater than 0) for all
  144. # of them. If download fails on one news server, NZBGet does not try
  145. # other servers from the same group.
  146. #
  147. # Value "0" means no group defined (default).
  148. Server1.Group=0
  149.  
  150. # Host name of news server.
  151. Server1.Host=my.newsserver.com
  152.  
  153. # Port to connect to (1-65535).
  154. Server1.Port=119
  155.  
  156. # User name to use for authentication.
  157. Server1.Username=user
  158.  
  159. # Password to use for authentication.
  160. Server1.Password=pass
  161.  
  162. # Server requires "Join Group"-command (yes, no).
  163. Server1.JoinGroup=no
  164.  
  165. # Encrypted server connection (TLS/SSL) (yes, no).
  166. #
  167. # NOTE: By changing this option you should also change the option <ServerX.Port>
  168. # accordingly because unsecure and encrypted connections use different ports.
  169. Server1.Encryption=no
  170.  
  171. # Cipher to use for encrypted server connection.
  172. #
  173. # By default (when the option is empty) the underlying encryption library
  174. # chooses the cipher automatically. To achieve the best performance
  175. # however you can manually select a faster cipher.
  176. #
  177. # See http://nzbget.sourceforge.net/Choosing_a_cipher for details.
  178. #
  179. # NOTE: One of the fastest cipher is RC4, it also provides strong 128 bit
  180. # encryption. To select it use the cipher string "RC4-MD5" (if NZBGet was
  181. # configured to use OpenSSL) or "NONE:+VERS-TLS-ALL:+ARCFOUR-128:+RSA:+MD5:+COMP-ALL"
  182. # (if NZBGet was configured to use GnuTLS).
  183. #
  184. # NOTE: You may get a TLS handshake error if the news server does
  185. # not support the chosen cipher. You can also get an error "Could not
  186. # select cipher for TLS" if the cipher string is not valid.
  187. Server1.Cipher=
  188.  
  189. # Maximum number of simultaneous connections to this server (0-999).
  190. Server1.Connections=4
  191.  
  192. # Second server, on level 0.
  193.  
  194. #Server2.Level=0
  195. #Server2.Host=my2.newsserver.com
  196. #Server2.Port=119
  197. #Server2.Username=me
  198. #Server2.Password=mypass
  199. #Server2.JoinGroup=yes
  200. #Server2.Connections=4
  201.  
  202. # Third server, on level 1.
  203.  
  204. #Server3.Level=1
  205. #Server3.Host=fills.newsserver.com
  206. #Server3.Port=119
  207. #Server3.Username=me2
  208. #Server3.Password=mypass2
  209. #Server3.JoinGroup=yes
  210. #Server3.Connections=1
  211.  
  212.  
  213. ##############################################################################
  214. ### REMOTE CONTROL ###
  215.  
  216. # IP on which NZBGet server listen and which clients use to contact NZBGet.
  217. #
  218. # It could be a dns-hostname (e. g. "mypc") or an ip-address (e. g. "192.168.1.2" or
  219. # "127.0.0.1"). An IP-address is more effective because does not require dns-lookup.
  220. #
  221. # Your computer may have multiple network interfaces and therefore multiple IP
  222. # addresses. If you want NZBGet to listen to all interfaces and be available from
  223. # all IP-addresses use value "0.0.0.0".
  224. #
  225. # NOTE: When you start NZBGet as client (to send remote commands to NZBGet server) and
  226. # the option <ControlIP> is set to "0.0.0.0" the client will use IP "127.0.0.1".
  227. #
  228. # NOTE: If you set the option to "127.0.0.1" you will be able to connect to NZBGet
  229. # only from the computer running NZBGet. This restriction applies to web-interface too.
  230. ControlIP=0.0.0.0
  231.  
  232. # Port which NZBGet server and remote client use (1-65535).
  233. #
  234. # NOTE: The communication via this port is not encrypted. For encrypted
  235. # communication see option <SecurePort>.
  236. ControlPort=6789
  237.  
  238. # User name which NZBGet server and remote client use.
  239. #
  240. # Set to empty value to disable user name check (check only password).
  241. #
  242. # NOTE: this option was added in NZBGet 11. Older versions used predefined
  243. # not changeable user name "nzbget". Third-party tools or web-sites written
  244. # for older NZBGet versions may not have an option to define user name. In
  245. # this case you should set option <ControlUsername> to the default value
  246. # "nzbget" or use empty value.
  247. ControlUsername=nzbget
  248.  
  249. # Password which NZBGet server and remote client use.
  250. #
  251. # Set to empty value to disable authorization request.
  252. ControlPassword=tegbzn6789
  253.  
  254. # Secure control of NZBGet server (yes, no).
  255. #
  256. # Activate the option if you want to access NZBGet built-in web-server
  257. # via HTTPS (web-interface and RPC). You should also provide certificate
  258. # and key files, see option <SecureCert> and option <SecureKey>.
  259. SecureControl=no
  260.  
  261. # Port which NZBGet server and remote client use for encrypted
  262. # communication (1-65535).
  263. SecurePort=6791
  264.  
  265. # Full path to certificate file for encrypted communication.
  266. SecureCert=
  267.  
  268. # Full path to key file for encrypted communication.
  269. SecureKey=
  270.  
  271.  
  272. ##############################################################################
  273. ### PERMISSIONS ###
  274.  
  275. # User name for daemon-mode, POSIX only.
  276. #
  277. # Set the user that the daemon normally runs at (POSIX in daemon-mode only).
  278. # Set MainDir with an absolute path to be sure where it will write.
  279. # This allows NZBGet daemon to be launched in rc.local (at boot), and
  280. # download items as a specific user id.
  281. #
  282. # NOTE: This option has effect only if the program was started from
  283. # root-account, otherwise it is ignored and the daemon runs under
  284. # current user id.
  285. DaemonUsername=root
  286.  
  287. # Specify default umask (affects file permissions) for newly created
  288. # files, POSIX only (000-1000).
  289. #
  290. # The value should be written in octal form (the same as for "umask" shell
  291. # command).
  292. # Empty value or value "1000" disable the setting of umask-mode; current
  293. # umask-mode (set via shell) is used in this case.
  294. UMask=1000
  295.  
  296.  
  297. ##############################################################################
  298. ### INCOMING NZBS ###
  299.  
  300. # Create subdirectory with category-name in destination-directory (yes, no).
  301. AppendCategoryDir=yes
  302.  
  303. # How often incoming-directory (option <NzbDir>) must be checked for new
  304. # nzb-files (seconds).
  305. #
  306. # Value "0" disables the check.
  307. NzbDirInterval=5
  308.  
  309. # How old nzb-file should at least be for it to be loaded to queue (seconds).
  310. #
  311. # NZBGet checks if nzb-file was not modified in last few seconds, defined by
  312. # this option. That safety interval prevents the loading of files, which
  313. # were not yet completely saved to disk, for example if they are still being
  314. # downloaded in web-browser.
  315. NzbDirFileAge=60
  316.  
  317. # Automatic merging of nzb-files with the same filename (yes, no).
  318. #
  319. # A typical scenario: you put nzb-file into incoming directory, NZBGet adds
  320. # file to queue. You find out, that the file doesn't have par-files. You
  321. # find required par-files, put nzb-file with the par-files into incoming
  322. # directory, NZBGet adds it to queue as a separate group. You want the second
  323. # file to be merged with the first for parchecking to work properly. With
  324. # option "MergeNzb" NZBGet can merge files automatically. You only need to
  325. # save the second file under the same filename as the first one.
  326. MergeNzb=no
  327.  
  328. # Set path to program, that must be executed before a nzb-file is added
  329. # to queue.
  330. #
  331. # This program is called each time a new file is found in incoming
  332. # directory (option <NzbDir>) or a file is received via RPC (web-interface,
  333. # command "nzbget --append", etc.).
  334. #
  335. # Example: ~/nzbprocess.sh.
  336. #
  337. # That program can unpack archives which were put in incoming directory, make
  338. # filename cleanup, change nzb-name, category, priority and post-processing
  339. # parameters of the nzb-file or do other things.
  340. #
  341. # INFO FOR DEVELOPERS:
  342. # NZBGet passes following arguments to nzbprocess-program as environment
  343. # variables:
  344. # NZBNP_DIRECTORY - path to directory, where file is located. It is a directory
  345. # specified by the option <NzbDir> or a subdirectory;
  346. # NZBNP_FILENAME - name of file to be processed;
  347. # NZBNP_NZBNAME - nzb-name (without path but with extension);
  348. # NZBNP_CATEGORY - category of nzb-file;
  349. # NZBNP_PRIORITY - priority of nzb-file;
  350. # NZBNP_TOP - flag indicating that the file will be added to the top
  351. # of queue: 0 or 1;
  352. # NZBNP_PAUSED - flag indicating that the file will be added as
  353. # paused: 0 or 1.
  354. #
  355. # In addition to these arguments NZBGet passes all
  356. # nzbget.conf-options to nzbprocess-program as environment variables. These
  357. # variables have prefix "NZBOP_" and are written in UPPER CASE. For Example
  358. # option "ParRepair" is passed as environment variable "NZBOP_PARREPAIR".
  359. # The dots in option names are replaced with underscores, for example
  360. # "SERVER1_HOST". For options with predefined possible values (yes/no, etc.)
  361. # the values are passed always in lower case.
  362. #
  363. # The nzbprocess-script can change nzb-name, category, priority,
  364. # post-processing parameters and top-/paused-flags of the nzb-file
  365. # by printing special messages into standard output (which is processed
  366. # by NZBGet).
  367. #
  368. # To change nzb-name use following syntax:
  369. # echo "[NZB] NZBNAME=my download";
  370. #
  371. # To change category:
  372. # echo "[NZB] CATEGORY=my category";
  373. #
  374. # To change priority:
  375. # echo "[NZB] PRIORITY=signed_integer_value";
  376. #
  377. # for example: to set priority higher than normal:
  378. # echo "[NZB] PRIORITY=50";
  379. #
  380. # another example: use a negative value for "lower than normal" priority:
  381. # echo "[NZB] PRIORITY=-100";
  382. #
  383. # Although priority can be any integer value, the web-interface operates
  384. # with five predefined priorities:
  385. # -100 - very low priority;
  386. # -50 - low priority;
  387. # 0 - normal priority (default);
  388. # 50 - high priority;
  389. # 100 - very high priority.
  390. #
  391. # To assign post-processing parameters:
  392. # echo "[NZB] NZBPR_myvar=my value";
  393. #
  394. # The prefix "NZBPR_" will be removed. In this example a post-processing
  395. # parameter with name "myvar" and value "my value" will be associated
  396. # with nzb-file.
  397. #
  398. # To change top-flag (nzb-file will be added to the top of queue):
  399. # echo "[NZB] TOP=1";
  400. #
  401. # To change paused-flag (nzb-file will be added in paused state):
  402. # echo "[NZB] PAUSED=1";
  403. #
  404. # The nzbprocess-script can delete processed file, rename it or move somewhere.
  405. # After the calling of the script the file will be either added to queue
  406. # (if it was an nzb-file) or renamed by adding the extension ".processed".
  407. #
  408. # NOTE: Files with extensions ".processed", ".queued" and ".error" are skipped
  409. # during the directory scanning.
  410. #
  411. # NOTE: Files with extension ".nzb_processed" are not passed to
  412. # NzbProcess-script before adding to queue. This feature allows
  413. # NzbProcess-script to prevent the scanning of nzb-files extracted from
  414. # archives, if they were already processed by the script.
  415. #
  416. # NOTE: Files added via RPC calls in particular from web-interface are
  417. # saved into incoming nzb-directory and then processed by the script.
  418. NzbProcess=
  419.  
  420. # Set path to program, that must be executed after a nzb-file is added
  421. # to queue.
  422. #
  423. # This program is called each time a new nzb-file is added to queue.
  424. #
  425. # Example: ~/nzbaddedprocess.sh.
  426. #
  427. # That program can modify the files in download queue (for example
  428. # delete or pause all nfo, sfv, sample files) or do something else.
  429. #
  430. # INFO FOR DEVELOPERS:
  431. # NZBGet passes following arguments to nzbaddedprocess-program as environment
  432. # variables:
  433. # NZBNA_NZBNAME - name of nzb-group. This name can be used in calls
  434. # to nzbget edit-command using subswitch "-GN name";
  435. # NZBNA_FILENAME - filename of the nzb-file. If the file was added
  436. # from nzb-directory this is the fullname with path.
  437. # If the file was added via web-interface it contains
  438. # only filename without path;
  439. # NZBNA_CATEGORY - category of nzb-file (if assigned);
  440. # NZBNA_LASTID - the id of the last file in the nzb-file. This ID can
  441. # be used with calls to nzbget edit-command;
  442. # NZBNA_PRIORITY - priority (default is 0).
  443. #
  444. # In addition to these arguments NZBGet passes all
  445. # nzbget.conf-options to nzbaddedprocess-program as environment variables. These
  446. # variables have prefix "NZBOP_" and are written in UPPER CASE. For Example
  447. # option "ParRepair" is passed as environment variable "NZBOP_PARREPAIR".
  448. # The dots in option names are replaced with underscores, for example
  449. # "SERVER1_HOST". For options with predefined possible values (yes/no, etc.)
  450. # the values are passed always in lower case.
  451. #
  452. # Examples:
  453. # 1) pausing nzb-file using file-id:
  454. # "$NZBOP_APPBIN" -c "$NZBOP_CONFIGFILE" -E G P $NZBNA_LASTID;
  455. # 2) setting category using nzb-name:
  456. # "$NZBOP_APPBIN" -c "$NZBOP_CONFIGFILE" -E GN K "my cat" "$NZBNA_NZBNAME";
  457. # 3) pausing files with extension "nzb":
  458. # "$NZBOP_APPBIN" -c "$NZBOP_CONFIGFILE" -E FR P "$NZBNA_NZBNAME/.*\.nzb";
  459. NzbAddedProcess=
  460.  
  461. # Check for duplicate files (yes, no).
  462. #
  463. # If this option is enabled the program checks by adding of a new nzb-file:
  464. # 1) if nzb-file contains duplicate entries. This check aims on detecting
  465. # of reposted files (if first file was not fully uploaded).
  466. # If the program find two files with identical names, only the
  467. # biggest of these files will be added to queue;
  468. # 2) if download queue already contains file with the same name;
  469. # 3) if destination file on disk already exists.
  470. # In last two cases: if the file exists it will not be added to queue.
  471. #
  472. # If this option is disabled, all files are downloaded and duplicate files
  473. # are renamed to "filename_duplicate1".
  474. # Existing files are never deleted or overwritten.
  475. DupeCheck=yes
  476.  
  477.  
  478. ##############################################################################
  479. ### DOWNLOAD QUEUE ###
  480.  
  481. # Save download queue to disk (yes, no).
  482. #
  483. # This allows to reload it on next start.
  484. SaveQueue=yes
  485.  
  486. # Reload download queue on start, if it exists (yes, no).
  487. ReloadQueue=yes
  488.  
  489. # Reload url-queue on start, if it exists (yes, no).
  490. #
  491. # For this option to work the options <SaveQueue> and <ReloadQueue> must
  492. # be also enabled.
  493. ReloadUrlQueue=yes
  494.  
  495. # Reload Post-processor-queue on start, if it exists (yes, no).
  496. #
  497. # For this option to work the options <SaveQueue> and <ReloadQueue> must
  498. # be also enabled.
  499. ReloadPostQueue=yes
  500.  
  501. # Reuse articles saved in temp-directory from previous program start (yes, no).
  502. #
  503. # This allows to continue download of file, if program was exited before
  504. # the file was completed.
  505. ContinuePartial=yes
  506.  
  507. # Decode articles (yes, no).
  508. #
  509. # yes - decode articles using internal decoder (supports yEnc and UU formats);
  510. # no - the articles will not be decoded and joined. Useful for debugging to
  511. # look at article's source text.
  512. Decode=yes
  513.  
  514. # Write decoded articles directly into destination output file (yes, no).
  515. #
  516. # Files are posted to Usenet within artilce bodies. Each file typically
  517. # requires hundreds of articles.
  518. #
  519. # When option <DirectWrite> is disabled, the program downloads all articles
  520. # into temporary directory and then combine them into destination file.
  521. #
  522. # With this option enabled the program at first creates the output
  523. # destination file with required size (total size of all articles),
  524. # then writes on the fly decoded articles directly to the file
  525. # without creating of any temporary files.
  526. #
  527. # This may improve performance but depends on OS and file system ability to
  528. # instantly create large files without initializing them with nulls. Such
  529. # files are called sparse files and are supported by modern file systems
  530. # like EXT3 on Linux or NTFS on Windows.
  531. #
  532. # Using of this option reduces disk operations but may produce more fragmented
  533. # files (depends on disk driver), which may slow down the post-processing.
  534. # It's recommended to test how the option behave on your platform to find the
  535. # best setting.
  536. #
  537. # INFO: a particular test on a Linux router with EXT3-partition showed that
  538. # activating of this option results in up to 20% better performance during
  539. # downloading.
  540. #
  541. # NOTE: For test try to download few big nzb-collections (each 4GB or more)
  542. # and measure the time used for downloading and post-processing (use timestamps
  543. # in a log-file to determine when the post-processing was ended).
  544. #
  545. # NOTE: When option <DirectWrite> is enabled the temporary directory (option
  546. # <TempDir>) must be located on the same partition with destination directory
  547. # (option DestDir>) for better performance. If option <DirectWrite> is disabled
  548. # it's better to use different drives for temporary and destination directories.
  549. #
  550. # NOTE: If both options <DirectWrite> and <ContinuePartial> are enabled,
  551. # the program still creates empty article-files in temp-directory. They are used
  552. # by the option <ContinuePartial> to check if a certain article was downloaded.
  553. # To minimize disk-io it is recommended to disable option <ContinuePartial>,
  554. # if <DirectWrite> is enabled. Especially on a fast connections (where you
  555. # would want to activate <DirectWrite>) it should not be a problem to redownload
  556. # an interrupted file.
  557. DirectWrite=yes
  558.  
  559. # Check CRC of downloaded and decoded articles (yes, no).
  560. #
  561. # Normally this option should be enabled for better detecting of download
  562. # errors. However checking of CRC needs CPU time. On a fast connection and
  563. # slow CPU disabling of CRC-Check may improve performance.
  564. CrcCheck=yes
  565.  
  566. # How many retries should be attempted if a download error occurs (0-99).
  567. #
  568. # 1) If download fails because of "article or group not found error" the
  569. # program tries another news server.
  570. #
  571. # 2) If download fails because of interrupted connection, the program
  572. # tries the same server again until connection can be established.
  573. #
  574. # In both cases 1) and 2) option <Retries> is not used.
  575. #
  576. # If download however fails because of incomplete article, CRC-error or other
  577. # error not mentioned above the program tries to redownload the article from
  578. # the same news server as many times as defined in option <Retries>. If all
  579. # attempts fail the program tries another news server.
  580. Retries=3
  581.  
  582. # Set the interval between retries (seconds).
  583. RetryInterval=10
  584.  
  585. # Set connection timeout (seconds).
  586. ConnectionTimeout=60
  587.  
  588. # Timeout until a download-thread should be killed (seconds).
  589. #
  590. # This can help on hanging downloads, but is dangerous.
  591. # Do not use small values!
  592. TerminateTimeout=600
  593.  
  594. # Set the maximum download rate on program start (kilobytes/sec).
  595. #
  596. # Value "0" means no speed control.
  597. # The download rate can be changed later via remote calls.
  598. DownloadRate=0
  599.  
  600. # Accurate speed rate calculation (yes, no).
  601. #
  602. # During downloading using several connections the download threads may
  603. # interfere with each other when updating statistical data for speed
  604. # meter. This may cause small errors in current download speed reported
  605. # by the program. The speed meter recovers automatically from such errors
  606. # after max. 30 seconds (time window used for speed calculation).
  607. #
  608. # Enable the option to use thread synchronisation mechanisms in order to
  609. # provide absolutely accurate speed calculations.
  610. #
  611. # NOTE: Thread synchronisation increases CPU load and therefore can
  612. # decrease download speed. Do not activate this option on computers with
  613. # limited CPU power. Before activating the option it is recommended to
  614. # run tests to determine how the option affects the CPU usage and the
  615. # download speed on a particular system.
  616. AccurateRate=no
  617.  
  618. # Set the size of memory buffer used by writing the articles (bytes).
  619. #
  620. # Bigger values decrease disk-io, but increase memory usage.
  621. # Value "0" causes an OS-dependent default value to be used.
  622. # With value "-1" (which means "max/auto") the program sets the size of
  623. # buffer according to the size of current article (typically less than 500K).
  624. #
  625. # NOTE: The value must be written in bytes, do not use postfixes "K" or "M".
  626. #
  627. # NOTE: To calculate the memory usage multiply WriteBufferSize by max number
  628. # of connections, configured in section "NEWS-SERVERS".
  629. #
  630. # NOTE: Typical article's size not exceed 500000 bytes, so using bigger values
  631. # (like several megabytes) will just waste memory.
  632. #
  633. # NOTE: For desktop computers with large amount of memory value "-1" (max/auto)
  634. # is recommended, but for computers with very low memory (routers, NAS)
  635. # value "0" (default OS-dependent size) could be better alternative.
  636. #
  637. # NOTE: Write-buffer is managed by OS (system libraries) and therefore
  638. # the effect of the option is highly OS-dependent.
  639. WriteBufferSize=0
  640.  
  641. # Pause if disk space gets below this value (megabytes).
  642. #
  643. # Value "0" disables the check.
  644. # Only the disk space on the drive with <DestDir> is checked.
  645. # The drive with <TempDir> is not checked.
  646. DiskSpace=250
  647.  
  648. # Delete already downloaded files from disk, if the download of nzb-file was
  649. # cancelled (nzb-file was deleted from queue) (yes, no).
  650. #
  651. # NOTE: NZBGet does not delete files in a case if all remaining files in
  652. # queue are par-files. That prevents the accidental deletion if the option
  653. # <ParCleanupQueue> is disabled or if the program was interrupted during
  654. # parcheck and later restarted without reloading of post queue (option
  655. # <ReloadPostQueue> disabled).
  656. DeleteCleanupDisk=no
  657.  
  658. # Keep the history of downloaded nzb-files (days).
  659. #
  660. # Value "0" disables the history.
  661. #
  662. # NOTE: When a collection having paused files is added to history all remaining
  663. # files are moved from download queue to a list of parked files. It holds files
  664. # which could be required later if the collection will be moved back to
  665. # download queue for downloading of remaining files. The parked files still
  666. # consume some amount of memory and disk space. If the collection was downloaded
  667. # and successfully par-checked or postprocessed it is recommended to discard the
  668. # unneeded parked files before adding the collection to history. For par2-files
  669. # that can be achieved with the option <ParCleanupQueue>.
  670. KeepHistory=7
  671.  
  672. # Keep the history of outdated feed items (days).
  673. #
  674. # After fetching of an RSS feed the information about included items (nzb-files)
  675. # is saved to disk. This allows to detect new items on next fetch. Feed
  676. # providers update RSS feeds constantly. Since the feed length is limited
  677. # (usually 100 items or less) the old items get pushed away by new
  678. # ones. When an item is not present in the feed anymore it's not necessary
  679. # to keep the information about this item on the disk.
  680. #
  681. # If option is set to "0", the outdated items are deleted from history
  682. # immediately.
  683. #
  684. # Otherwise the items are held in the history for defined number of
  685. # days. Keeping of items for few days helps in situations when feed provider
  686. # has technical issues and may response with empty feeds (or with missing
  687. # items). When the technical issue is fixed the items may reappear in the
  688. # feed causing the program to redownload items if they were not found in
  689. # the feed history.
  690. FeedHistory=7
  691.  
  692. # Maximum number of simultaneous connections for nzb URL downloads (0-999).
  693. #
  694. # When NZB-files are added to queue via URL, the program downloads them
  695. # from the specified URL. The option limits the maximal number of connections
  696. # used for this purpose, when multiple URLs were added at the same time.
  697. UrlConnections=4
  698.  
  699.  
  700. ##############################################################################
  701. ### CATEGORIES ###
  702.  
  703. # This section defines categories available in web-interface.
  704.  
  705. # Category name.
  706. #
  707. # Each nzb-file can be assigned to a category.
  708. # Category name is passed to post-processing script and can be used by it
  709. # to perform category specific processing.
  710. Category1.Name=Movies
  711.  
  712. # Destination directory for this category.
  713. #
  714. # If this option is empty, then the default destination directory
  715. # (option <DestDir>) is used. In this case if the option <AppendCategoryDir>
  716. # is active, the program creates a subdirectory with category name within
  717. # destination directory.
  718. Category1.DestDir=
  719.  
  720. # Unpack downloaded nzb-files (yes, no).
  721. #
  722. # For more information see global option <Unpack>.
  723. Category1.Unpack=yes
  724.  
  725. # Default list of post-processing scripts.
  726. #
  727. # For more information see global option <DefScript>.
  728. Category1.DefScript=
  729.  
  730. # List of aliases.
  731. #
  732. # When a nzb-file is added from URL, RSS or RPC the category name
  733. # is usually supplied by nzb-site or by application accessing
  734. # NZBGet. Using Aliases you can match their categories with your owns.
  735. #
  736. # Separate aliases with commas or semicolons. Use wildcard-characters
  737. # * and ? for pattern matching.
  738. #
  739. # Example: TV - HD, TV - SD, TV*
  740. Category1.Aliases=
  741.  
  742. Category2.Name=Series
  743. Category3.Name=Music
  744. Category4.Name=Software
  745.  
  746.  
  747. ##############################################################################
  748. ### RSS FEEDS ###
  749.  
  750. # Name of RSS Feed.
  751. #
  752. # The name is used in UI and for logging. It can be any string.
  753. #Feed1.Name=my feed
  754.  
  755. # Address (URL) of RSS Feed.
  756. #
  757. # Example: https://myindexer.com/api?apikey=3544646bfd1c535a9654645609800901&t=search&q=game.
  758. #
  759. # NOTE: When the feed is fetched for the very first time all existing
  760. # items are ignored. The items found on subsequentional fetches are processed.
  761. #Feed1.URL=
  762.  
  763. # Filter rules for items.
  764. #
  765. # Use filter to ignore unwanted items in the feed. In its simplest version
  766. # the filter is a space separated list of words which must be present in
  767. # the item title.
  768. #
  769. # Example: linux debian dvd.
  770. #
  771. # MORE INFO:
  772. # NOTE: This is a short documentation, for more information visit
  773. # http://nzbget.sourceforge.net/RSS.
  774. #
  775. # Filter string is similar to used in search engines. It consists of
  776. # search rules separated with spaces. Every rule is checked for a feed
  777. # item and if they all succeed the feed item is considered good. If
  778. # any of the rules fails the feed item is ignored (rejected).
  779. #
  780. # Definition of rules:
  781. # [+|-][field:][command]param
  782. #
  783. # + - declares a positive rule. Rules are positive by default,
  784. # the "+" can be omitted;
  785. # - - declares a negative rule. If the rule succeed the feed
  786. # item is ignored;
  787. # field - field to which apply the rule. Available fields: title,
  788. # filename, category, link, size, age. If not specified
  789. # the default field "title" is used;
  790. # command - one of the special characters defining how to interpret the
  791. # parameter (followed after the command):
  792. # @ - search for word "param" This is default command,
  793. # the "@" can be omitted;
  794. # " (quotation mark) - search for substring "param". The parameter
  795. # must end with quotation mark as well;
  796. # $ - "param" defines a regular expression (using POSIX Extended
  797. # Regular Expressions syntax);
  798. # < - less than;
  799. # <= - equal or less than;
  800. # > - greater than;
  801. # >= - equal or greater than;
  802. # param - parameter for command.
  803. #
  804. # Commands @, " and $ are for use with text fields (title, filename, category,
  805. # link). Commands <, <=, > and >= are for use with numeric fields (size,
  806. # age). Commands @ and " support wildcard characters * and ?. Command @ assumes
  807. # following characters being word separators: !\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~.
  808. #
  809. # Examples (the trailing ; or . is not part of filter):
  810. # 1) s01* -category:anime;
  811. # 2) game of thrones "WEB-DL";
  812. # 3) "game?of?thrones" "WEB-DL" size:<1.8GB age:>2h.
  813. #
  814. # NOTE: This is a short documentation, for more information visit
  815. # http://nzbget.sourceforge.net/RSS.
  816. #Feed1.Filter=
  817.  
  818. # How often to check for new items (minutes).
  819. #
  820. # Value "0" disables the automatic check of this feed.
  821. #Feed1.Interval=15
  822.  
  823. # Add nzb-files as paused (yes, no).
  824. #Feed1.PauseNzb=no
  825.  
  826. # Category for added nzb-files.
  827. #
  828. # NOTE: Feed providers may include category name within response when nzb-file
  829. # is downloaded. If you want to use the providers category leave the option empty.
  830. #Feed1.Category=
  831.  
  832. # Priority for added nzb-files (number).
  833. #
  834. # Priority can be any integer value. The web-interface however operates
  835. # with only five predefined priorities: -100 (very low priority), -50
  836. # (low priority), 0 (normal priority, default), 50 (high priority),
  837. # 100 (very high priority).
  838. #Feed1.Priority=0
  839.  
  840.  
  841. ##############################################################################
  842. ### LOGGING ###
  843.  
  844. # Create log file (yes, no).
  845. CreateLog=yes
  846.  
  847. # Delete log file upon server start (only in server-mode) (yes, no).
  848. ResetLog=no
  849.  
  850. # How error messages must be printed (screen, log, both, none).
  851. ErrorTarget=both
  852.  
  853. # How warning messages must be printed (screen, log, both, none).
  854. WarningTarget=both
  855.  
  856. # How info messages must be printed (screen, log, both, none).
  857. InfoTarget=both
  858.  
  859. # How detail messages must be printed (screen, log, both, none).
  860. DetailTarget=both
  861.  
  862. # How debug messages must be printed (screen, log, both, none).
  863. #
  864. # Debug-messages can be printed only if the program was compiled in
  865. # debug-mode: "./configure --enable-debug".
  866. DebugTarget=both
  867.  
  868. # Number of messages stored in buffer and available for remote
  869. # clients (messages).
  870. LogBufferSize=1000
  871.  
  872. # Create a log of all broken files (yes ,no).
  873. #
  874. # It is a text file placed near downloaded files, which contains
  875. # the names of broken files.
  876. CreateBrokenLog=yes
  877.  
  878. # Create memory dump (core-file) on abnormal termination, Linux only (yes, no).
  879. #
  880. # Core-files are very helpful for debugging.
  881. #
  882. # NOTE: Core-files may contain sensible data, like your login/password to
  883. # newsserver etc.
  884. DumpCore=no
  885.  
  886. # See also option <LogFile> in section "PATHS"
  887.  
  888.  
  889. ##############################################################################
  890. ### DISPLAY (TERMINAL) ###
  891.  
  892. # Set screen-outputmode (loggable, colored, curses).
  893. #
  894. # loggable - only messages will be printed to standard output;
  895. # colored - prints messages (with simple coloring for messages categories)
  896. # and download progress info; uses escape-sequences to move cursor;
  897. # curses - advanced interactive interface with the ability to edit
  898. # download queue and various output option.
  899. OutputMode=curses
  900.  
  901. # Shows NZB-Filename in file list in curses-outputmode (yes, no).
  902. #
  903. # This option controls the initial state of curses-frontend,
  904. # it can be switched on/off in run-time with Z-key.
  905. CursesNzbName=yes
  906.  
  907. # Show files in groups (NZB-files) in queue list in curses-outputmode (yes, no).
  908. #
  909. # This option controls the initial state of curses-frontend,
  910. # it can be switched on/off in run-time with G-key.
  911. CursesGroup=no
  912.  
  913. # Show timestamps in message list in curses-outputmode (yes, no).
  914. #
  915. # This option controls the initial state of curses-frontend,
  916. # it can be switched on/off in run-time with T-key.
  917. CursesTime=no
  918.  
  919. # Update interval for Frontend-output in console mode or remote client
  920. # mode (milliseconds).
  921. #
  922. # Min value 25. Bigger values reduce CPU usage (especially in curses-outputmode)
  923. # and network traffic in remote-client mode.
  924. UpdateInterval=200
  925.  
  926.  
  927. ##############################################################################
  928. ### SCHEDULER ###
  929.  
  930. # This section defines scheduler commands.
  931. # For each command create a set of options <TaskX.Time>, <TaskX.Command>,
  932. # <TaskX.WeekDays> and <TaskX.DownloadRate>.
  933. # The following example shows how to throttle downloads in the daytime
  934. # by 100 KB/s and download at full speed overnights:
  935.  
  936. # Time to execute the command (HH:MM).
  937. #
  938. # Multiple comma-separated values are accepted.
  939. # Asterix as hours-part means "every hour".
  940. #
  941. # Examples: "08:00", "00:00,06:00,12:00,18:00", "*:00", "*:00,*:30".
  942. #Task1.Time=08:00
  943.  
  944. # Week days to execute the command (1-7).
  945. #
  946. # Comma separated list of week days numbers.
  947. # 1 is Monday.
  948. # Character '-' may be used to define ranges.
  949. #
  950. # Examples: "1-7", "1-5", "5,6", "1-5, 7".
  951. #Task1.WeekDays=1-7
  952.  
  953. # Command to be executed (DownloadRate, PauseDownload, UnpauseDownload, PauseScan,
  954. # UnpauseScan, Process).
  955. #
  956. # Possible commands:
  957. # DownloadRate - sets download rate in KB/s;
  958. # PauseDownload - pauses download;
  959. # UnpauseDownload - resumes download;
  960. # PauseScan - pauses scan of incoming nzb-directory;
  961. # UnpauseScan - resumes scan of incoming nzb-directory;
  962. # Process - executes external program.
  963. #Task1.Command=DownloadRate
  964.  
  965. # Download rate to be set if the command is "DownloadRate" (kilobytes/sec).
  966. #
  967. # Value "0" means no speed control.
  968. #
  969. # If the option <TaskX.Command> is not set to "DownloadRate" this option
  970. # is ignored and can be omitted.
  971. #Task1.DownloadRate=100
  972.  
  973. # Path to the program to execute if the command is "Process".
  974. #
  975. # Example: /home/user/fetch-nzb.sh.
  976. #
  977. # If the option <TaskX.Command> is not set to "Process" this option
  978. # is ignored and can be omitted.
  979. #
  980. # NOTE: It's allowed to add parameters to command line. If filename or
  981. # any parameter contains spaces it must be surrounded with single quotation
  982. # marks. If filename/parameter contains single quotation marks, each of them
  983. # must be replaced with two single quotation marks and the resulting filename/
  984. # parameter must be surrounded with single quotation marks.
  985. # Example: '/home/user/download/my scripts/task process.sh' 'world''s fun'.
  986. # In this example one parameter (world's fun) is passed to the script
  987. # (task process.sh).
  988. #Task1.Process=/home/user/script.sh
  989.  
  990. #Task2.Time=20:00
  991. #Task2.WeekDays=1-7
  992. #Task2.Command=DownloadRate
  993. #Task2.DownloadRate=0
  994.  
  995.  
  996. ##############################################################################
  997. ### PAR CHECK/REPAIR ###
  998.  
  999. # Whether and how par-verification must be performed (auto, force, manual).
  1000. #
  1001. # Auto - par-check is performed when needed. One par2-file is always
  1002. # downloaded. Additional par2-files are downloaded if needed
  1003. # for repair. Repair is performed if the option <ParRepair>
  1004. # is enabled;
  1005. # Force - force par-check for every download (even undamaged). All
  1006. # par2-files are always downloaded. Repair is performed if
  1007. # the option <ParRepair> is enabled;
  1008. # Manual - par-check is skipped. One par2-file is always
  1009. # downloaded. If a damaged download is detected, all
  1010. # par2-files are downloaded but neithet par-check nor par-repair
  1011. # take place. The download can be then repaired manually
  1012. # (possibly on another, faster computer).
  1013. ParCheck=auto
  1014.  
  1015. # Automatic par-repair after par-verification (yes, no).
  1016. #
  1017. # If option <ParCheck> is set to "Auto" or "Force" this option defines
  1018. # if the download must be repaired when needed. The option can be
  1019. # disabled if computer does not have enough CPU power, since repairing
  1020. # may take too much resources and time on a slow computers.
  1021. ParRepair=yes
  1022.  
  1023. # What files should be scanned during par-verification (limited,
  1024. # full, auto).
  1025. #
  1026. # Limited - scan only files belonging to the par-set;
  1027. # Full - scan all files in the directory. This helps if the
  1028. # files were renamed after creating of par-set;
  1029. # Auto - a limited scan is performed first. If the par-checker
  1030. # detects missing files, it scans other files in the
  1031. # directory until all required files are found.
  1032. #
  1033. # NOTE: for par-check/repair NZBGet uses library libpar2. The last and
  1034. # widely used version 0.2 of the library has few bugs, sometimes causing
  1035. # a crash of the program. This is especially true when using "full" or
  1036. # "auto" par-scan. NZBGet is supplied with patches addressing these
  1037. # issues. Please apply the patches to libpar2 and recompile it.
  1038. ParScan=auto
  1039.  
  1040. # Use only par2-files with matching names (yes, no).
  1041. #
  1042. # If par-check needs extra par-blocks it looks for paused par2-files
  1043. # in the download queue. These par2-files should have the same base name
  1044. # as the main par2-file, currently loaded in par-checker. Sometimes extra
  1045. # par2-files have non-matching names (especially if they were uploaded
  1046. # by a different poster). Normally par-checker does not use these files, but
  1047. # you can allow it to use them by setting <StrictParName> to "no".
  1048. # There is a small side effect then: if NZB-file contains more than one
  1049. # collection of files (with different par-sets), par-checker may download
  1050. # par2-files from a wrong collection and will need to unpause other
  1051. # par2-files until all required files are downloaded. This increases the
  1052. # traffic (but not harm the par-check).
  1053. #
  1054. # NOTE: Par-checker always uses only par-files added from the same NZB-file
  1055. # and the option <StrictParName> does not change this behavior.
  1056. StrictParName=yes
  1057.  
  1058. # Maximum allowed time for par-repair (minutes).
  1059. #
  1060. # Value "0" means unlimited.
  1061. #
  1062. # If you use NZBGet on a very slow computer like NAS-device, it may be good to
  1063. # limit the time allowed for par-repair. NZBGet calculates the estimated time
  1064. # required for par-repair. If the estimated value exceeds the limit defined
  1065. # here, NZBGet cancels the repair.
  1066. #
  1067. # To avoid a false cancellation NZBGet compares the estimated time with
  1068. # <ParTimeLimit> after the first 5 minutes of repairing, when the calculated
  1069. # estimated time is more or less accurate. But in a case if <ParTimeLimit> is
  1070. # set to a value smaller than 5 minutes, the comparison is made after the first
  1071. # whole minute.
  1072. #
  1073. # NOTE: The option limits only the time required for repairing. It doesn't
  1074. # affect the first stage of parcheck - verification of files. However the
  1075. # verification speed is constant, it doesn't depend on files integrity and
  1076. # therefore it is not necessary to limit the time needed for the first stage.
  1077. #
  1078. # NOTE: This option requires an extended version of libpar2 (the original
  1079. # version doesn't support the cancelling of repairing). Please refer to
  1080. # NZBGet's README for info on how to apply the patch to libpar2.
  1081. ParTimeLimit=0
  1082.  
  1083. # Pause download queue during check/repair (yes, no).
  1084. #
  1085. # Enable the option to give CPU more time for par-check/repair. That helps
  1086. # to speed up check/repair on slow CPUs with fast connection (e.g. NAS-devices).
  1087. #
  1088. # NOTE: If parchecker needs additional par-files it temporarily unpauses
  1089. # the queue.
  1090. #
  1091. # NOTE: See also options <ScriptPauseQueue> and <UnpackPauseQueue>.
  1092. ParPauseQueue=no
  1093.  
  1094. # Cleanup download queue after successful check/repair (yes, no).
  1095. #
  1096. # Enable this option for automatic deletion of unneeded (paused) par-files
  1097. # from download queue after successful check/repair.
  1098. ParCleanupQueue=yes
  1099.  
  1100. # Delete source nzb-file after successful check/repair (yes, no).
  1101. #
  1102. # Enable this option for automatic deletion of nzb-file from incoming directory
  1103. # after successful check/repair.
  1104. NzbCleanupDisk=no
  1105.  
  1106. # Files to delete after successful check/repair.
  1107. #
  1108. # List of file extensions or file names to delete after successful
  1109. # check/repair. The entries must be separated with commas. The entries
  1110. # can be file extensions or any text the file name may end with.
  1111. #
  1112. # Example: .par2, .sfv
  1113. ExtCleanupDisk=.par2, .sfv, _brokenlog.txt
  1114.  
  1115.  
  1116. ##############################################################################
  1117. ### UNPACK ###
  1118.  
  1119. # Unpack downloaded nzb-files (yes, no).
  1120. #
  1121. # Each download (nzb-file) has a post-processing parameter "Unpack". The option
  1122. # <Unpack> is the default value assigned to this pp-parameter of the download
  1123. # when it is added to queue.
  1124. #
  1125. # When nzb-file is added to queue it can have a category assigned to it. In this
  1126. # case the option <CategoryX.Unpack> overrides the global option <Unpack>.
  1127. #
  1128. # If the download is damaged and could not be repaired using par-files
  1129. # the unpacking is not performed.
  1130. #
  1131. # If the option <ParCheck> is set to "Auto" the program tries to unpack
  1132. # downloaded files first. If the unpacking fails the par-check/repair
  1133. # is performed and the unpack is executed again.
  1134. Unpack=yes
  1135.  
  1136. # Pause download queue during unpack (yes, no).
  1137. #
  1138. # Enable the option to give CPU more time for unpacking. That helps
  1139. # to speed up unpacking on slow CPUs.
  1140. #
  1141. # NOTE: See also options <ParPauseQueue> and <ScriptPauseQueue>.
  1142. UnpackPauseQueue=no
  1143.  
  1144. # Delete archive files after successful unpacking (yes, no).
  1145. UnpackCleanupDisk=yes
  1146.  
  1147. # Full path to unrar executable.
  1148. #
  1149. # Example: /usr/bin/unrar.
  1150. #
  1151. # If unrar is in your PATH you may leave the path part and set only
  1152. # the executable name ("unrar" on POSIX or "unrar.exe" on Windows).
  1153. UnrarCmd=unrar
  1154.  
  1155. # Full path to 7-Zip executable.
  1156. #
  1157. # Example: /usr/bin/7z.
  1158. #
  1159. # If 7-Zip binary is in your PATH you may leave the path part and set only
  1160. # the executable name ("7z" or "7za" on POSIX or "7z.exe" on Windows).
  1161. SevenZipCmd=7z
  1162.  
  1163.  
  1164. ##############################################################################
  1165. ### POST-PROCESSING SCRIPTS ###
  1166.  
  1167. # Default list of post-processing scripts to execute after the download
  1168. # of nzb-file is completed and possibly par-checked/repaired and unpacked,
  1169. # depending on other options.
  1170. #
  1171. # The scripts in the list must be separated with commas or semicolons. Only
  1172. # filenames without path must be used. All scripts must be stored in directory
  1173. # pointed by option <ScriptDir>.
  1174. #
  1175. # Example: Cleanup.sh, Move.sh, EMail.py.
  1176. #
  1177. # Each download (nzb-file) has its own list of post-processing scripts. The option
  1178. # <DefScript> is the default value assigned to download when it is added to
  1179. # queue. The list of post-processing scripts for a particular download can be
  1180. # changed in the edit dialog in web-interface or using remote command "--edit/-E".
  1181. #
  1182. # When nzb-file is added to queue it can have a category assigned to it. In this
  1183. # case the option <CategoryX.DefScript> (if not empty) overrides the
  1184. # global option <DefScript>.
  1185. #
  1186. # NOTE: The script execution order is controlled by option <ScriptOrder>, not
  1187. # by their order in option <DefScript>.
  1188. #
  1189. # NOTE: Changing options <DefScript> and <CategoryX.DefScript> doesn't affect
  1190. # already queued downloads.
  1191. #
  1192. # NOTE: For the list of interesting post-processing scripts see
  1193. # http://nzbget.sourceforge.net/Catalog_of_post-processing_scripts.
  1194. #
  1195. # INFO FOR DEVELOPERS:
  1196. # NOTE: This is a short documentation, for more information visit
  1197. # http://nzbget.sourceforge.net/Post-processing_scripts.
  1198. #
  1199. # NZBGet passes following arguments to post-processing script as environment
  1200. # variables:
  1201. # NZBPP_DIRECTORY - path to destination dir for downloaded files;
  1202. # NZBPP_NZBNAME - user-friendly name of processed nzb-file as it is displayed
  1203. # by the program. The file path and extension are removed.
  1204. # If download was renamed, this parameter reflects the new name;
  1205. # NZBPP_NZBFILENAME - name of processed nzb-file. It includes file extension and also
  1206. # may include full path;
  1207. # NZBPP_CATEGORY - category assigned to nzb-file (can be empty string);
  1208. # NZBPP_PARSTATUS - result of par-check:
  1209. # 0 = not checked: par-check is disabled or nzb-file does
  1210. # not contain any par-files;
  1211. # 1 = checked and failed to repair;
  1212. # 2 = checked and successfully repaired;
  1213. # 3 = checked and can be repaired but repair is disabled;
  1214. # 4 = par-check needed but skipped (option ParCheck=manual);
  1215. # NZBPP_UNPACKSTATUS - result of unpack:
  1216. # 0 = unpack is disabled or was skipped due to nzb-file
  1217. # properties or due to errors during par-check;
  1218. # 1 = unpack failed;
  1219. # 2 = unpack successful.
  1220. #
  1221. # If the script defines own options they are also passed as environment
  1222. # variables. These variables have prefix "NZBPO_" in their names. For
  1223. # example, option "myoption" will be passed as environment variable
  1224. # "NZBPO_myoption" and in addition in uppercase as "NZBPO_MYOPTION".
  1225. #
  1226. # If the script defines own post-processing parameters, they are also passed as
  1227. # environment variables. These variables have prefix "NZBPR_" in their
  1228. # names. For example, pp-parameter "myparam" will be passed as environment
  1229. # variable "NZBPR_myparam" and in addition in uppercase as "NZBPR_MYPARAM".
  1230. #
  1231. # In addition to arguments, pp-options and pp-parameters NZBGet passes all
  1232. # nzbget.conf-options to pp-script as environment variables. These
  1233. # variables have prefix "NZBOP_" and are written in UPPER CASE. For Example
  1234. # option "ParRepair" is passed as environment variable "NZBOP_PARREPAIR". The
  1235. # dots in option names are replaced with underscores, for example
  1236. # "SERVER1_HOST". For options with predefined possible values (yes/no, etc.)
  1237. # the values are passed always in lower case.
  1238. #
  1239. # Return value: NZBGet processes the exit code returned by the script:
  1240. # 93 - post-process successful (status = SUCCESS);
  1241. # 94 - post-process failed (status = FAILURE);
  1242. # 95 - post-process skipped (status = NONE). Use this code when you script
  1243. # terminates immediateley without doing any job and when this is not
  1244. # a failure termination;
  1245. # 92 - request NZBGet to do par-check/repair for current nzb-file.
  1246. #
  1247. # All other return codes are interpreted as failure (status = FAILURE).
  1248. #
  1249. # NOTE: This is a short documentation, for more information visit
  1250. # http://nzbget.sourceforge.net/Post-processing_scripts.
  1251. DefScript=
  1252.  
  1253. # Execution order for scripts.
  1254. #
  1255. # If you assign multiple scripts to one nzb-file, they are executed in the
  1256. # order defined by this option. Scripts not listed here are executed at
  1257. # the end in their alphabetical order.
  1258. #
  1259. # The scripts in the list must be separated with commas or semicolons. Only
  1260. # filenames without path must be used. All scripts must be stored in directory
  1261. # pointed by option <ScriptDir>.
  1262. #
  1263. # Example: Cleanup.sh, Move.sh.
  1264. ScriptOrder=
  1265.  
  1266. # Pause download queue during executing of postprocess-script (yes, no).
  1267. #
  1268. # Enable the option to give CPU more time for postprocess-script. That helps
  1269. # to speed up postprocess on slow CPUs with fast connection (e.g. NAS-devices).
  1270. #
  1271. # NOTE: See also options <ParPauseQueue> and <UnpackPauseQueue>.
  1272. ScriptPauseQueue=no
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement