Advertisement
Guest User

Untitled

a guest
May 12th, 2017
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 29.99 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/myconig.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 related tasks.
  23. # MAINDIR is a variable and therefore starts with "$".
  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=C:\Downloads_2\download
  27.  
  28. # Destination-directory to store the downloaded files.
  29. DestDir=${MAINDIR}/dst
  30.  
  31. # Directory to monitor for incoming nzb-jobs.
  32. # Can have subdirectories.
  33. # A nzb-file queued from a subdirectory will be automatically assigned to
  34. # category with the directory-name.
  35. NzbDir=${MAINDIR}/nzb
  36.  
  37. # Directory to store download queue.
  38. QueueDir=${MAINDIR}/queue
  39.  
  40. # Directory to store temporary files.
  41. TempDir=${MAINDIR}/tmp
  42.  
  43. # Lock-file for daemon-mode, POSIX only.
  44. # If the option is not empty, nzbget creates the file and writes process-id
  45. # (PID) into it. That info can be used in shell scripts.
  46. LockFile=/tmp/nzbget.lock
  47.  
  48. # Where to store log file, if it needs to be created.
  49. # NOTE: See also option <CreateLog>.
  50. LogFile=${DestDir}/nzbget.log
  51.  
  52.  
  53. ##############################################################################
  54. ### NEWS-SERVERS ###
  55.  
  56. # This section defines which servers nzbget should connect to.
  57.  
  58. # Level of newsserver (0-99).
  59. # The servers will be ordered by their level, i.e. nzbget will at
  60. # first try to download an article from the level-0-server.
  61. # If that server fails, nzbget proceeds with the level-1-server, etc.
  62. # A good idea is surely to put your major download-server at level 0
  63. # and your fill-servers at levels 1,2,...
  64. # NOTE: Do not leave out a level in your server-list and start with level 0!
  65. # NOTE: Several servers with the same level may be used, they will have
  66. # the same priority.
  67. Server1.Level=1
  68. # Host name of newsserver.
  69. #Server1.Host=news.ipv6.eweka.nl
  70. # Port to connect to (1-65535).
  71. #Server1.Port=119
  72. # User name to use for authentication.
  73. #Server1.Username=user
  74. # Password to use for authentication.
  75. #Server1.Password=pass
  76. # Server requires "Join Group"-command (yes, no).
  77. Server1.JoinGroup=yes
  78. # Encrypted server connection (TLS/SSL) (yes, no).
  79. Server1.Encryption=no
  80. # Maximal number of simultaneous connections to this server (0-999).
  81. Server1.Connections=4
  82.  
  83. # Second server, on level 0.
  84.  
  85. #Server2.Level=2
  86. #Server2.Host=newszilla6.xs4all.nl
  87. #Server2.Port=119
  88. #Server2.Username=me
  89. #Server2.Password=mypass
  90. #Server2.JoinGroup=yes
  91. #Server2.Connections=4
  92.  
  93. # Third server, on level 1.
  94.  
  95. Server3.Level=0
  96. Server3.Host=reader.ipv6.xsnews.nl
  97. Server3.Port=119
  98. Server3.Username=ipv6-4256
  99. Server3.Password=3fw7nfv4ks
  100. Server3.JoinGroup=yes
  101. Server3.Connections=5
  102.  
  103.  
  104. ##############################################################################
  105. ### PERMISSIONS ###
  106.  
  107. # User name for daemon-mode, POSIX only.
  108. # Set the user that the daemon normally runs at (POSIX in daemon-mode only).
  109. # Set $MAINDIR with an absolute path to be sure where it will write.
  110. # This allows nzbget daemon to be launched in rc.local (at boot), and
  111. # download items as a specific user id.
  112. # NOTE: This option has effect only if the program was started from
  113. # root-account, otherwise it is ignored and the daemon runs under
  114. # current user id.
  115. DaemonUserName=root
  116.  
  117. # Specify default umask (affects file permissions) for newly created
  118. # files, POSIX only (000-1000).
  119. # The value should be written in octal form (the same as for "umask" shell
  120. # command).
  121. # Empty value or value "1000" disable the setting of umask-mode; current
  122. # umask-mode (set via shell) is used in this case.
  123. UMask=1000
  124.  
  125.  
  126. ##############################################################################
  127. ### INCOMING NZBS ###
  128.  
  129. # Create subdirectory with category-name in destination-directory (yes, no).
  130. AppendCategoryDir=yes
  131.  
  132. # Create subdirectory with nzb-filename in destination-directory (yes, no).
  133. AppendNzbDir=yes
  134.  
  135. # How often incoming-directory (option <NzbDir>) must be checked for new
  136. # nzb-files (seconds).
  137. # Value "0" disables the check.
  138. NzbDirInterval=5
  139.  
  140. # How old nzb-file should at least be for it to be loaded to queue (seconds).
  141. # Nzbget checks if nzb-file was not modified in last few seconds, defined by
  142. # this option. That safety interval prevents the loading of files, which
  143. # were not yet completely saved to disk, for example if they are still being
  144. # downloaded in web-browser.
  145. NzbDirFileAge=60
  146.  
  147. # Set path to program, that must be executed before any file in incoming
  148. # directory (option <NzbDir>) is processed.
  149. # Example: "NzbProcess=~/nzbprocess.sh".
  150. # That program can unpack archives put in incoming directory, make
  151. # filename cleanup or something else.
  152. # Arguments passed to that program:
  153. # 1 - path to directory, where file is located. It is a directory specified
  154. # by the option <NzbDir> or a subdirectory inside it;
  155. # 2 - name of file to be processed;
  156. # The nzbprocess-script can delete processed file, rename it or move somewhere.
  157. # After the calling of the script the file will be either added to queue
  158. # (if it was an nzb-file) or renamed by adding the extension ".processed".
  159. # Unpacked files will be checked on next directory scan (see option
  160. # <NzbDirInterval>).
  161. # NOTE: Files with extensions ".processed", ".queued" and ".error" are skipped
  162. # during the directory scanning.
  163. # NOTE: Files with extension ".nzb_processed" are not passed to
  164. # NzbProcess-script before adding to queue. This feature allows
  165. # NzbProcess-script to perevnt the scanning of nzb-files extracted from
  166. # archives, if they were already processed by the script.
  167. #NzbProcess=
  168.  
  169. # Set the default message-kind for output received from nzbprocess-script
  170. # (none, detail, info, warning, error, debug).
  171. # NZBGet checks if the line written by the script to stdout or stderr starts
  172. # with special character-sequence, determining the message-kind, e.g.:
  173. # [INFO] bla-bla.
  174. # [DETAIL] bla-bla.
  175. # [WARNING] bla-bla.
  176. # [ERROR] bla-bla.
  177. # [DEBUG] bla-bla.
  178. # If the message-kind was detected the text is added to log with detected type.
  179. # Otherwise the message becomes the default kind, specified in this option.
  180. #NzbLogKind=detail
  181.  
  182. # Check for duplicate files (yes, no).
  183. # If this option is enabled the program checks by adding of a new nzb-file:
  184. # 1) if nzb-file contains duplicate entries. This check aims on detecting
  185. # of reposted files (if first file was not fully uploaded);
  186. # If the program find two files with identical names, only the
  187. # biggest of these files will be added to queue;
  188. # 2) if download queue already contains file with the same name;
  189. # 3) if destination file on disk already exists.
  190. # In last two cases: if the file exists it will not be added to queue;
  191. # If this option is disabled, all files are downloaded and duplicate files
  192. # are renamed to "filename_duplicate1".
  193. # Existing files are never deleted or overwritten.
  194. DupeCheck=yes
  195.  
  196.  
  197. ##############################################################################
  198. ### DOWNLOAD QUEUE ###
  199.  
  200. # Save download queue to disk (yes, no).
  201. # This allows to reload it on next start.
  202. SaveQueue=yes
  203.  
  204. # Reload download queue on start, if it exists (yes, no).
  205. ReloadQueue=yes
  206.  
  207. # Reload Post-processor-queue on start, if it exists (yes, no).
  208. # For this option to work the options <SaveQueue> and <ReloadQueue> must
  209. # be also enabled.
  210. ReloadPostQueue=yes
  211.  
  212. # Reuse articles saved in temp-directory from previous program start (yes, no).
  213. # This allows to continue download of file, if program was exited before
  214. # the file was completed.
  215. ContinuePartial=yes
  216.  
  217. # Visibly rename broken files on download appending "_broken" (yes, no).
  218. # Do not activate this option if par-check is enabled.
  219. RenameBroken=no
  220.  
  221. # Decode articles (yes, no).
  222. # yes - decode articles using internal decoder (supports yEnc and UU formats);
  223. # no - the articles will not be decoded and joined. External programs
  224. # (like "uudeview") can be used to decode and join downloaded articles.
  225. # Also useful for debugging to look at article's source text.
  226. Decode=yes
  227.  
  228. # Write decoded articles directly into destination output file (yes, no).
  229. # With this option enabled the program at first creates the output
  230. # destination file with required size (total size of all articles),
  231. # then writes on the fly decoded articles directly to the file
  232. # without creating of any temporary files, even for decoded articles.
  233. # This may results in major performance improvement, but this higly
  234. # depends on OS and filesystem used.
  235. # Can improve performance on a very fast internet connections,
  236. # but you need to test if it works in your case.
  237. # INFO: Tests showed, that on Linux with EXT3-partition activating of
  238. # this option results in up to 20% better performance, but on Windows with NTFS
  239. # or Linux with FAT32-partitions the performance were decreased.
  240. # The possible reason is that on EXT3-partition Linux can create large files
  241. # very fast (if the content of file does not need to be initialized),
  242. # but Windows on NTFS-partition and also Linux on FAT32-partition need to
  243. # initialize created large file with nulls, resulting in a big performace
  244. # degradation.
  245. # NOTE: for testing try to download few big files (with total size 500-1000MB)
  246. # and measure required time. Do not rely on the program's speed indicator.
  247. # NOTE: if both options <DirectWrite> and <ContinuePartial> are enabled,
  248. # the program will create empty articles-files in temp-directrory. They
  249. # are used to continue download of file on a next program start. To minimize
  250. # disk-io it is recommended to disable option <ContinuePartial>, if
  251. # <DirectWrite> is enabled. Especially on a fast connections (where you
  252. # would want to activate <DirectWrite>) it should not be a problem to
  253. # redownload the interrupted file.
  254. DirectWrite=no
  255.  
  256. # Check CRC of downloaded and decoded articles (yes, no).
  257. # Normally this option should be enabled for better detecting of download
  258. # errors. However checking of CRC needs about the same CPU time as
  259. # decoding of articles. On a fast connections with slow CPUs disabling of
  260. # CPU-check may slightly improve performance (if CPU is a limiting factor).
  261. CrcCheck=yes
  262.  
  263. # How much retries should be attempted if a download error occurs (0-99).
  264. Retries=4
  265.  
  266. # Set the interval between retries (seconds).
  267. RetryInterval=10
  268.  
  269. # Redownload article if CRC-check fails (yes, no).
  270. # Helps to minimize number of broken files, but may be effective
  271. # only if you have multiple download servers (even from the same provider
  272. # but from different locations (e.g. europe, usa)).
  273. # In any case the option increases your traffic.
  274. # For slow connections loading of extra par-blocks may be more effective
  275. # The option <CrcCheck> must be enabled for option <RetryOnCrcError> to work.
  276. RetryOnCrcError=no
  277.  
  278. # Set connection timeout (seconds).
  279. ConnectionTimeout=60
  280.  
  281. # Timeout until a download-thread should be killed (seconds).
  282. # This can help on hanging downloads, but is dangerous.
  283. # Do not use small values!
  284. TerminateTimeout=600
  285.  
  286. # Set the (approximate) maximum number of allowed threads (0-999).
  287. # Sometimes under certain circumstances the program may create way to many
  288. # download threads. Most of them are in wait-state. That is not bad,
  289. # but threads are usually a limited resource. If a program creates to many
  290. # of them, operating system may kill it. The option <ThreadLimit> prevents that.
  291. # NOTE: the number of threads is not the same as the number of connections
  292. # opened to NNTP-servers. Do not use the option <ThreadLimit> to limit the
  293. # number of connections. Use the appropriate options <ServerX.Connections>
  294. # instead.
  295. # NOTE: the actual number of created threads can be slightly larger as
  296. # defined by the option. Important threads may be created even if the
  297. # number of threads is exceeded. The option prevents only the creation of
  298. # additional download threads.
  299. # NOTE: in most cases you should leave the default value "100" unchanged.
  300. # However you may increase that value if you need more than 90 connections
  301. # (that's very unlikely) or decrease the value if the OS does not allow so
  302. # many threads. But the most OSes should not have problems with 100 threads.
  303. ThreadLimit=100
  304.  
  305. # Set the maximum download rate on program start (kilobytes/sec).
  306. # Value "0" means no speed control.
  307. # The download rate can be changed later via remote calls.
  308. DownloadRate=0
  309.  
  310. # Set the size of memory buffer used by writing the articles (bytes).
  311. # Bigger values decrease disk-io, but increase memory usage.
  312. # Value "0" causes the OS-dependend default value to be used.
  313. # With value "-1" (which means "max/auto") the program sets the size of
  314. # buffer according to the size of current article (typically less than 500K).
  315. # NOTE: the value must be written in bytes, do not use postfixes "K" or "M".
  316. # NOTE: to calculate the memory usage multiply WriteBufferSize by max number
  317. # of connections, configured in section "NEWS-SERVERS".
  318. # NOTE: typical article's size not exceed 500000 bytes, so using bigger values
  319. # (like several megabytes) will just waste memory.
  320. # NOTE: for desktop computers with large amount of memory value "-1" (max/auto)
  321. # is recommended, but for computers with very low memory (routers, NAS)
  322. # value "0" (default OS-dependend size) could be better alternative.
  323. # NOTE: write-buffer is managed by OS (system libraries) and therefore
  324. # the effect of the option is highly OS-dependend.
  325. WriteBufferSize=0
  326.  
  327. # Pause if disk space gets below this value (megabytes).
  328. # Value "0" disables the check.
  329. # Only the disk space on the drive with <DestDir> is checked.
  330. # The drive with <TempDir> is not checked.
  331. DiskSpace=250
  332.  
  333. # Delete already downloaded files from disk, if the download of nzb-file was
  334. # cancelled (nzb-file was deleted from queue) (yes, no).
  335. # NOTE: nzbget does not delete files in a case if all remaining files in
  336. # queue are par-files. That prevents the accidential deletetion if the option
  337. # <ParCleanupQueue> is disabled or if the program was interrupted during
  338. # parcheck and later restarted without reloading of post queue (option
  339. # <ReloadPostQueue> disabled).
  340. #DeleteCleanupDisk=no
  341.  
  342. ##############################################################################
  343. ### LOGGING ###
  344.  
  345. # Create log file (yes, no).
  346. CreateLog=no
  347.  
  348. # Delete log file upon server start (only in server-mode) (yes, no).
  349. ResetLog=no
  350.  
  351. # How error messages must be printed (screen, log, both, none).
  352. ErrorTarget=both
  353.  
  354. # How warning messages must be printed (screen, log, both, none).
  355. WarningTarget=both
  356.  
  357. # How info messages must be printed (screen, log, both, none).
  358. InfoTarget=both
  359.  
  360. # How detail messages must be printed (screen, log, both, none).
  361. DetailTarget=both
  362.  
  363. # How debug messages must be printed (screen, log, both, none).
  364. # Debug-messages can be printed only if the program was compiled in
  365. # debug-mode: "./configure --enable-debug".
  366. DebugTarget=both
  367.  
  368. # Number of messages stored in buffer and available for remote
  369. # clients (messages).
  370. LogBufferSize=1000
  371.  
  372. # Create a log of all broken files (yes ,no).
  373. # It is a text file placed near downloaded files, which contains
  374. # the names of broken files.
  375. CreateBrokenLog=yes
  376.  
  377. # Create memory dump (core-file) on abnormal termination, POSIX only (yes, no).
  378. # Core-files are very helpful for debugging.
  379. # NOTE: core-files may contain sensible data, like your login/password to
  380. # newsserver etc.
  381. DumpCore=no
  382.  
  383. # See also option <LogFile> in secion "PATHS"
  384.  
  385.  
  386. ##############################################################################
  387. ### DISPLAY (TERMINAL) ###
  388.  
  389. # Set screen-outputmode (loggable, colored, curses).
  390. # loggable - only messages will be printed to standard output;
  391. # colored - prints messages (with simple coloring for messages categories)
  392. # and download progress info; uses escape-sequenses to move cursor;
  393. # curses - advanced interactive iterface with the ability to edit
  394. # download queue and various output option.
  395. OutputMode=curses
  396.  
  397. # Shows NZB-Filename in file list in curses-outputmode (yes, no).
  398. # This option controls the initial state of curses-frontend,
  399. # it can be switched on/off in run-time with Z-key.
  400. CursesNzbName=yes
  401.  
  402. # Show files in groups (NZB-files) in queue list in curses-outputmode (yes, no).
  403. # This option controls the initial state of curses-frontend,
  404. # it can be switched on/off in run-time with G-key.
  405. CursesGroup=no
  406.  
  407. # Show timestamps in message list in curses-outputmode (yes, no).
  408. # This option controls the initial state of curses-frontend,
  409. # it can be switched on/off in run-time with T-key.
  410. CursesTime=no
  411.  
  412. # Update interval for Frontend-output in console mode or remote client
  413. # mode (milliseconds).
  414. # Min value 25. Bigger values reduce CPU usage (especially in curses-outputmode)
  415. # and network traffic in remote-client mode.
  416. UpdateInterval=200
  417.  
  418.  
  419. ##############################################################################
  420. ### CLIENT/SERVER COMMUNICATION ###
  421.  
  422. # IP on which the server listen and which client uses to contact the server.
  423. # It could be dns-hostname or ip-address (more effective since does not
  424. # require dns-lookup).
  425. # If you want the server to listen to all interfaces, use "0.0.0.0".
  426. ServerIp=127.0.0.1
  427.  
  428. # Port which the server & client use (1-65535).
  429. ServerPort=6789
  430.  
  431. # Password which the server & client use.
  432. ServerPassword=hassel14
  433.  
  434. # See also option <LogBufferSize> in section "LOGGING"
  435.  
  436.  
  437. ##############################################################################
  438. ### PAR CHECK/REPAIR ###
  439.  
  440. # How many par2-files to load (none, all, one).
  441. # none - all par2-files must be automatically paused;
  442. # all - all par2-files must be downloaded;
  443. # one - only one main par2-file must be dowloaded and other must be paused.
  444. # Paused files remain in queue and can be unpaused by parchecker when needed.
  445. LoadPars=one
  446.  
  447. # Automatic par-verification (yes, no).
  448. # To download only needed par2-files (smart par-files loading) set also
  449. # the option <LoadPars> to "one". If option <LoadPars> is set to "all",
  450. # all par2-files will be downloaded before verification and repair starts.
  451. # The option <RenameBroken> must be set to "no", otherwise the par-checker
  452. # may not find renamed files and fail.
  453. ParCheck=yes
  454.  
  455. # Automatic par-repair (yes, no).
  456. # If option <ParCheck> is enabled and <ParRepair> is not, the program
  457. # only verifies downloaded files and downloads needed par2-files, but does
  458. # not start repair-process. This is useful if the server does not have
  459. # enough CPU power, since repairing of large files may take too much
  460. # resources and time on a slow computers.
  461. # This option has effect only if the option <ParCheck> is enabled.
  462. ParRepair=yes
  463.  
  464. # Use only par2-files with matching names (yes, no).
  465. # If par-check needs extra par-blocks it searches for par2-files
  466. # in download queue, which can be unpaused and used for restore.
  467. # These par2-files should have the same base name as the main par2-file,
  468. # currently loaded in par-checker. Sometimes extra par files (especially if
  469. # they were uploaded by a different poster) have not matching names.
  470. # Normally par-checker does not use these files, but you can allow it
  471. # to use these files by setting <StrictParName> to "no".
  472. # This has however a side effect: if NZB-file contains more than one collection
  473. # of files (with different par-sets), par-checker may download par-files from
  474. # a wrong collection. This increases you traffic (but not harm par-check).
  475. # NOTE: par-checker always uses only par-files added from the same NZB-file
  476. # and the option <StrictParName> does not change this behavior.
  477. StrictParName=yes
  478.  
  479. # Pause download queue during check/repair (yes, no).
  480. # Enable the option to give CPU more time for par-check/repair. That helps
  481. # to speed up check/repair on slow CPUs with fast connection (e.g. NAS-devices).
  482. # NOTE: if parchecker needs additional par-files it temporary unpauses queue.
  483. # NOTE: See also option <PostPauseQueue>.
  484. ParPauseQueue=no
  485.  
  486. # Cleanup download queue after successful check/repair (yes, no).
  487. # Enable this option for automatic deletion of unneeded (paused) par-files
  488. # from download queue after successful check/repair.
  489. # NOTE: before cleaning up the program checks if all paused files are par-files.
  490. # If there are paused non-par-files (this means that you have paused them
  491. # manually), the cleanup will be skipped for this collection.
  492. ParCleanupQueue=yes
  493.  
  494. # Delete source nzb-file after successful check/repair (yes, no).
  495. # Enable this option for automatic deletion of nzb-file from incoming directory
  496. # after successful check/repair.
  497. NzbCleanupDisk=no
  498.  
  499.  
  500. ##############################################################################
  501. ### POSTPROCESSING ###
  502.  
  503. # Set path to program, that must be executed after the download of nzb-file
  504. # or one collection in nzb-file (if par-check enabled and nzb-file contains
  505. # multiple collections; see note below for the definition of "collection")
  506. # is completed and possibly par-checked/repaired.
  507. # Example: "PostProcess=~/postprocess-example.sh".
  508. # Arguments passed to that program:
  509. # 1 - path to destination dir, where downloaded files are located;
  510. # 2 - name of nzb-file processed;
  511. # 3 - name of par-file or empty string (if no collections found);
  512. # 4 - result of par-check:
  513. # 0 = not checked: par-check disabled or nzb-file does not contain any
  514. # par-files;
  515. # 1 = checked and failed to repair;
  516. # 2 = checked and successfully repaired;
  517. # 3 = checked and can be repaired but repair is disabled;
  518. # 5 - state of nzb-job:
  519. # 0 = there are more collections in this nzb-file queued;
  520. # 1 = this was the last collection in nzb-file;
  521. # 6 - indication of failed par-jobs for current nzb-file:
  522. # 0 = no failed par-jobs;
  523. # 1 = current par-job or any of the previous par-jobs for the
  524. # same nzb-files failed;
  525. # 7 - category assigned to nzb-file (can be empty string).
  526. # Return value: nzbget processes the exit code returned by the script:
  527. # 0 - all OK;
  528. # 28161 - request nzbget to do par-check/repair for current collection in the
  529. # current nzb-file;
  530. # 28162 - request nzbget to do par-check/repair for all collections in the
  531. # current nzb-file;
  532. # For info: value "28161" in hex-form is 0x6E01 and means "n1" or "nzbget
  533. # return code 1".
  534. # All other return codes are currently ignored, but for future compatibility
  535. # use value "0" or do not specify any exit code (in this case system use code
  536. # "0" by default).
  537. # NOTE: The parameter "state of nzb-job" is very important and MUST be checked
  538. # even in the simplest scripts.
  539. # If par-check is enabled and nzb-file contains more than one collection
  540. # of files the postprocess-program is called after each collection is completed
  541. # and par-checked. If you want to unpack files or clean up the directory
  542. # (delete par-files, etc.) there are two possibilities, when you can do this:
  543. # 1) you parse the "name of par-file processed" to find out the base name
  544. # of collection and clean up only files from this collection (not reliable,
  545. # because par-files sometimes have different names than rar-files);
  546. # 2) or you just check the parameters "state of nzb-job" and "indication of
  547. # failed par-jobs" and do the processing, only if they are set to "1"
  548. # (which means, that this was the last collection in nzb-file and all files
  549. # are now completed) and to "0" (no failed par-jobs) respectively;
  550. # NOTE: the term "collection" in the above description actually means
  551. # "par-set". To determine what "collections" are present in nzb-file nzbget
  552. # looks for par-sets. If any collection of files within nzb-file does
  553. # not have any par-files, this collection will not be detected.
  554. # For example, for nzb-file containing three collections but only two par-sets,
  555. # the postprocess will be called two times - after processing of each par-set.
  556. # NOTE: if nzbget doesn't find any collections it calls PostProcess once
  557. # with empty string for parameter "name of par-file";
  558. # NOTE: using the special return value ("28161") for requesting of
  559. # par-check/repair allows to organize the delayed parcheck. To do that:
  560. # 1) set options: LoadPars=one, ParCheck=no, ParRepair=yes;
  561. # 2) in post-process-script check the parameter "result of par-check". If
  562. # it is "0", that means, the script is called for the first time. Try to
  563. # unpack files. If unpack fails, exit the script with exit code for
  564. # par-check/repair;
  565. # 3) nzbget will start par-check/repair. After that it calls the script again;
  566. # 4) on second pass the parameter "result of par-check" will have value
  567. # greater than "0". If it is "2" ("checked and successfully repaired")
  568. # you can try unpack again.
  569. # NOTE: an example script for unrarring is provided within distribution
  570. # in file "postprocess-example.sh".
  571. #PostProcess=
  572.  
  573. # Allow multiple post-processing for the same nzb-file (yes,no).
  574. # After the post-processing (par-check and call of a postprocess-script) is
  575. # completed, nzbget adds the nzb-file to a list of completed-jobs. The nzb-file
  576. # stays in the list until the last file from that nzb-file is deleted from
  577. # the download queue (it occurs straight away if the par-check was successful
  578. # and the option <ParCleanupQueue> is enabled).
  579. # That means, if a paused file from a nzb-collection becomes unpaused
  580. # (manually or from a post-process-script) after the collection was already
  581. # postprocessed nzbget will not post-process nzb-file again.
  582. # This prevents the unwanted multiple post-processings of the same nzb-file.
  583. # But it might be needed if the par-check/-repair are performed not directly
  584. # by nzbget but from a post-process-script.
  585. # NOTE: enable this option only if you were advised to do that by the author
  586. # of the post-process-script.
  587. # NOTE: by enabling <AllowReProcess> you should disable the option <ParCheck>
  588. # to prevent multiple par-checking.
  589. AllowReProcess=no
  590.  
  591. # Set the default message-kind for output received from postprocess-script
  592. # (none, detail, info, warning, error, debug).
  593. # NZBGet checks if the line written by the script to stdout or stderr starts
  594. # with special character-sequence, determining the message-kind, e.g.:
  595. # [INFO] bla-bla.
  596. # [DETAIL] bla-bla.
  597. # [WARNING] bla-bla.
  598. # [ERROR] bla-bla.
  599. # [DEBUG] bla-bla.
  600. # If the message-kind was detected the text is added to log with detected type.
  601. # Otherwise the message becomes the default kind, specified in this option.
  602. PostLogKind=detail
  603.  
  604. # Pause download queue during executing of postprocess-script (yes, no).
  605. # Enable the option to give CPU more time for postprocess-script. That helps
  606. # to speed up postprocess on slow CPUs with fast connection (e.g. NAS-devices).
  607. # NOTE: See also option <ParPauseQueue>.
  608. PostPauseQueue=no
  609.  
  610.  
  611. ##############################################################################
  612. ### SCHEDULER ###
  613.  
  614. # This section defines scheduler commands.
  615. # For each command create a set of options <TaskX.Time>, <TaskX.Command>,
  616. # <TaskX.WeekDays> and <TaskX.DownloadRate>.
  617. # The following example shows how to throttle downloads in the daytime
  618. # by 100 KB/s and download at full speed overnights:
  619.  
  620. # Time to execute the command (HH:MM).
  621. #Task1.Time=08:00
  622.  
  623. # Week days to execute the command (1-7).
  624. # Comma separated list of week days numbers.
  625. # 1 is Monday.
  626. # Character '-' may be used to define ranges.
  627. # Examples: "1-7", "1-5", "5,6", "1-5, 7".
  628. #Task1.WeekDays=1-7
  629.  
  630. # Command to be executed (Pause, Unpause, DownloadRate).
  631. # Possible commands:
  632. # Pause - pauses download;
  633. # Unpause - resumes download;
  634. # DownloadRate - sets download rate in KB/s.
  635. #Task1.Command=DownloadRate
  636.  
  637. # Download rate to be set if the command is "DownloadRate" (kilobytes/sec).
  638. # If the option <TaskX.Command> is set to "Pause" or "Unpause" this option
  639. # is ignored and can be omitted.
  640. # Value "0" means no speed control.
  641. #Task1.DownloadRate=100
  642.  
  643. #Task2.Time=20:00
  644. #Task2.WeekDays=1-7
  645. #Task2.Command=DownloadRate
  646. #Task2.DownloadRate=0
  647.  
  648.  
  649. ##############################################################################
  650. ## PERFORMANCE ##
  651.  
  652. # On a very fast connection and slow CPU and/or drive the following
  653. # settings may improve performance:
  654. # 1) Disable par-checking and -repairing ("ParCheck=no"). VERY important,
  655. # because par-checking/repairing needs a lot of CPU-power and
  656. # significantly increases disk usage;
  657. # 2) Try to activate option <DirectWrite> ("DirectWrite=yes");
  658. # 3) Disable option <CrcCheck> ("CrcCheck=no");
  659. # 4) Disable option <ContinuePartial> ("ContinuePartial=no");
  660. # 5) Do not limit download rate ("DownloadRate=0"), because the bandwidth
  661. # throttling eats CPU time;
  662. # 6) Disable logging for info- and debug-messages ("InfoTarget=none",
  663. # "DebugTarget=none");
  664. # 7) Run the program in daemon (Posix) or service (Windows) mode and use
  665. # remote client for short periods of time needed for controlling of
  666. # download process on server. Daemon/Service mode eats less CPU
  667. # resources due to not updating of output on screen.
  668. # 8) Increase the value of option <WriteBufferSize> or better set it to
  669. # "-1" (max/auto) if you have spare 5-20 MB of memory.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement