Advertisement
Guest User

Untitled

a guest
Jun 16th, 2017
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 35.55 KB | None | 0 0
  1. # 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. #
  24. # MAINDIR is a variable and therefore starts with "$".
  25. # On POSIX you can use "~" as alias for home directory (e.g. "~/download").
  26. # On Windows use absolute paths (e.g. "C:\Download").
  27. $MAINDIR=~/Downloads/Usenet/nzbget
  28.  
  29. # Destination-directory to store the downloaded files.
  30. DestDir=${MAINDIR}/dst
  31.  
  32. # Directory to monitor for incoming nzb-jobs.
  33. #
  34. # Can have subdirectories.
  35. # A nzb-file queued from a subdirectory will be automatically assigned to
  36. # category with the directory-name.
  37. NzbDir=${MAINDIR}/nzb
  38.  
  39. # Directory to store download queue.
  40. QueueDir=${MAINDIR}/queue
  41.  
  42. # Directory to store temporary files.
  43. TempDir=${MAINDIR}/tmp
  44.  
  45. # Lock-file for daemon-mode, POSIX only.
  46. #
  47. # If the option is not empty, nzbget creates the file and writes process-id
  48. # (PID) into it. That info can be used in shell scripts.
  49. LockFile=/tmp/nzbget.lock
  50.  
  51. # Where to store log file, if it needs to be created.
  52. #
  53. # NOTE: See also option <CreateLog>.
  54. LogFile=${DestDir}/nzbget.log
  55.  
  56.  
  57. ##############################################################################
  58. ### NEWS-SERVERS ###
  59.  
  60. # This section defines which servers nzbget should connect to.
  61.  
  62. # Level of newsserver (0-99).
  63. #
  64. # The servers will be ordered by their level, i.e. nzbget will at
  65. # first try to download an article from the level-0-server.
  66. # If that server fails, nzbget proceeds with the level-1-server, etc.
  67. # A good idea is surely to put your major download-server at level 0
  68. # and your fill-servers at levels 1,2,...
  69. #
  70. # NOTE: Do not leave out a level in your server-list and start with level 0.
  71. #
  72. # NOTE: Several servers with the same level may be used, they will have
  73. # the same priority.
  74. Server1.Level=0
  75.  
  76. # Host name of newsserver.
  77. Server1.Host=xxx.com
  78.  
  79. # Port to connect to (1-65535).
  80. Server1.Port=563
  81.  
  82. # User name to use for authentication.
  83. Server1.Username=user
  84.  
  85. # Password to use for authentication.
  86. Server1.Password=password
  87.  
  88. # Server requires "Join Group"-command (yes, no).
  89. Server1.JoinGroup=yes
  90.  
  91. # Encrypted server connection (TLS/SSL) (yes, no).
  92. Server1.Encryption=yes
  93.  
  94. # Maximal number of simultaneous connections to this server (0-999).
  95. Server1.Connections=6
  96.  
  97. ##############################################################################
  98. ### PERMISSIONS ###
  99.  
  100. # User name for daemon-mode, POSIX only.
  101. #
  102. # Set the user that the daemon normally runs at (POSIX in daemon-mode only).
  103. # Set $MAINDIR with an absolute path to be sure where it will write.
  104. # This allows nzbget daemon to be launched in rc.local (at boot), and
  105. # download items as a specific user id.
  106. #
  107. # NOTE: This option has effect only if the program was started from
  108. # root-account, otherwise it is ignored and the daemon runs under
  109. # current user id.
  110. DaemonUserName=root
  111.  
  112. # Specify default umask (affects file permissions) for newly created
  113. # files, POSIX only (000-1000).
  114. #
  115. # The value should be written in octal form (the same as for "umask" shell
  116. # command).
  117. # Empty value or value "1000" disable the setting of umask-mode; current
  118. # umask-mode (set via shell) is used in this case.
  119. UMask=1000
  120.  
  121.  
  122. ##############################################################################
  123. ### INCOMING NZBS ###
  124.  
  125. # Create subdirectory with category-name in destination-directory (yes, no).
  126. AppendCategoryDir=no
  127.  
  128. # Create subdirectory with nzb-filename in destination-directory (yes, no).
  129. AppendNzbDir=yes
  130.  
  131. # How often incoming-directory (option <NzbDir>) must be checked for new
  132. # nzb-files (seconds).
  133. #
  134. # Value "0" disables the check.
  135. NzbDirInterval=15
  136.  
  137. # How old nzb-file should at least be for it to be loaded to queue (seconds).
  138. #
  139. # Nzbget checks if nzb-file was not modified in last few seconds, defined by
  140. # this option. That safety interval prevents the loading of files, which
  141. # were not yet completely saved to disk, for example if they are still being
  142. # downloaded in web-browser.
  143. NzbDirFileAge=60
  144.  
  145. # Automatic merging of nzb-files with the same filename (yes, no).
  146. #
  147. # A typical scenario: you put nzb-file into incoming directory, nzbget adds
  148. # file to queue. You find out, that the file doesn't have par-files. You
  149. # find required par-files, put nzb-file with the par-files into incoming
  150. # directory, nzbget adds it to queue as a separate group. You want the second
  151. # file to be merged with the first for parchecking to work properly. With
  152. # option "MergeNzb" nzbget can merge files automatically. You only need to
  153. # save the second file under the same filename as the first one.
  154. MergeNzb=no
  155.  
  156. # Set path to program, that must be executed before any file in incoming
  157. # directory (option <NzbDir>) is processed.
  158. #
  159. # Example: "NzbProcess=~/nzbprocess.sh".
  160. #
  161. # That program can unpack archives which were put in incoming directory, make
  162. # filename cleanup, assign category and post-processing parameters to nzb-file
  163. # or do something else.
  164. #
  165. # NZBGet passes following arguments to nzbprocess-program as environment
  166. # variables:
  167. # NZBNP_DIRECTORY - path to directory, where file is located. It is a directory
  168. # specified by the option <NzbDir> or a subdirectory;
  169. # NZBNP_FILENAME - name of file to be processed;
  170. #
  171. # In addition to these arguments nzbget passes all
  172. # nzbget.conf-options to postprocess-program as environment variables. These
  173. # variables have prefix "NZBOP_" and are written in UPPER CASE. For Example
  174. # option "ParRepair" is passed as environment variable "NZBOP_PARREPAIR".
  175. # The dots in option names are replaced with underscores, for example
  176. # "SERVER1_HOST". For options with predefined possible values (yes/no, etc.)
  177. # the values are passed always in lower case.
  178. #
  179. # The nzbprocess-script can assign category or post-processing parameters
  180. # to current nzb-file by printing special messages into standard output
  181. # (which is processed by NZBGet).
  182. #
  183. # To assign category use following syntax:
  184. # echo "[NZB] CATEGORY=my category";
  185. #
  186. # To assign post-processing parameters:
  187. # echo "[NZB] NZBPR_myvar=my value";
  188. #
  189. # The prefix "NZBPR_" will be removed. In this example a post-processing
  190. # parameter with name "myvar" and value "my value" will be associated
  191. # with nzb-file.
  192. #
  193. # The nzbprocess-script can delete processed file, rename it or move somewhere.
  194. # After the calling of the script the file will be either added to queue
  195. # (if it was an nzb-file) or renamed by adding the extension ".processed".
  196. #
  197. # NOTE: Files with extensions ".processed", ".queued" and ".error" are skipped
  198. # during the directory scanning.
  199. #
  200. # NOTE: Files with extension ".nzb_processed" are not passed to
  201. # NzbProcess-script before adding to queue. This feature allows
  202. # NzbProcess-script to prevent the scanning of nzb-files extracted from
  203. # archives, if they were already processed by the script.
  204. NzbProcess=
  205.  
  206. # Check for duplicate files (yes, no).
  207. #
  208. # If this option is enabled the program checks by adding of a new nzb-file:
  209. # 1) if nzb-file contains duplicate entries. This check aims on detecting
  210. # of reposted files (if first file was not fully uploaded);
  211. # If the program find two files with identical names, only the
  212. # biggest of these files will be added to queue;
  213. # 2) if download queue already contains file with the same name;
  214. # 3) if destination file on disk already exists.
  215. # In last two cases: if the file exists it will not be added to queue;
  216. #
  217. # If this option is disabled, all files are downloaded and duplicate files
  218. # are renamed to "filename_duplicate1".
  219. # Existing files are never deleted or overwritten.
  220. DupeCheck=no
  221.  
  222.  
  223. ##############################################################################
  224. ### DOWNLOAD QUEUE ###
  225.  
  226. # Save download queue to disk (yes, no).
  227. #
  228. # This allows to reload it on next start.
  229. SaveQueue=yes
  230.  
  231. # Reload download queue on start, if it exists (yes, no).
  232. ReloadQueue=yes
  233.  
  234. # Reload Post-processor-queue on start, if it exists (yes, no).
  235. #
  236. # For this option to work the options <SaveQueue> and <ReloadQueue> must
  237. # be also enabled.
  238. ReloadPostQueue=yes
  239.  
  240. # Reuse articles saved in temp-directory from previous program start (yes, no).
  241. #
  242. # This allows to continue download of file, if program was exited before
  243. # the file was completed.
  244. ContinuePartial=yes
  245.  
  246. # Visibly rename broken files on download appending "_broken" (yes, no).
  247. #
  248. # Do not activate this option if par-check is enabled.
  249. RenameBroken=no
  250.  
  251. # Decode articles (yes, no).
  252. #
  253. # yes - decode articles using internal decoder (supports yEnc and UU formats);
  254. # no - the articles will not be decoded and joined. External programs
  255. # (like "uudeview") can be used to decode and join downloaded articles.
  256. # Also useful for debugging to look at article's source text.
  257. Decode=yes
  258.  
  259. # Write decoded articles directly into destination output file (yes, no).
  260. #
  261. # With this option enabled the program at first creates the output
  262. # destination file with required size (total size of all articles),
  263. # then writes on the fly decoded articles directly to the file
  264. # without creating of any temporary files, even for decoded articles.
  265. # This may results in major performance improvement, but this highly
  266. # depends on OS and file system.
  267. #
  268. # Can improve performance on a very fast internet connections,
  269. # but you need to test if it works in your case.
  270. #
  271. # INFO: Tests showed, that on Linux with EXT3-partition activating of
  272. # this option results in up to 20% better performance, but on Windows with NTFS
  273. # or Linux with FAT32-partitions the performance were decreased.
  274. # The possible reason is that on EXT3-partition Linux can create large files
  275. # very fast (if the content of file does not need to be initialized),
  276. # but Windows on NTFS-partition and also Linux on FAT32-partition need to
  277. # initialize created large file with nulls, resulting in a big performance
  278. # degradation.
  279. #
  280. # NOTE: for testing try to download few big files (with total size 500-1000MB)
  281. # and measure required time. Do not rely on the program's speed indicator.
  282. #
  283. # NOTE: if both options <DirectWrite> and <ContinuePartial> are enabled,
  284. # the program will still create empty articles-files in temp-directory. They
  285. # are used to continue download of file on a next program start. To minimize
  286. # disk-io it is recommended to disable option <ContinuePartial>, if
  287. # <DirectWrite> is enabled. Especially on a fast connections (where you
  288. # would want to activate <DirectWrite>) it should not be a problem to
  289. # redownload an interrupted file.
  290. DirectWrite=no
  291.  
  292. # Check CRC of downloaded and decoded articles (yes, no).
  293. #
  294. # Normally this option should be enabled for better detecting of download
  295. # errors. However checking of CRC needs about the same CPU time as
  296. # decoding of articles. On a fast connections with slow CPUs disabling of
  297. # CPU-check may slightly improve performance (if CPU is a limiting factor).
  298. CrcCheck=yes
  299.  
  300. # How much retries should be attempted if a download error occurs (0-99).
  301. Retries=4
  302.  
  303. # Set the interval between retries (seconds).
  304. RetryInterval=10
  305.  
  306. # Redownload article if CRC-check fails (yes, no).
  307. #
  308. # Helps to minimize number of broken files, but may be effective
  309. # only if you have multiple download servers (even from the same provider
  310. # but from different locations (e.g. europe, usa)).
  311. # In any case the option increases your traffic.
  312. # For slow connections loading of extra par-blocks may be more effective
  313. # The option <CrcCheck> must be enabled for option <RetryOnCrcError> to work.
  314. RetryOnCrcError=no
  315.  
  316. # Set connection timeout (seconds).
  317. ConnectionTimeout=60
  318.  
  319. # Timeout until a download-thread should be killed (seconds).
  320. #
  321. # This can help on hanging downloads, but is dangerous.
  322. # Do not use small values!
  323. TerminateTimeout=600
  324.  
  325. # Set the (approximate) maximum number of allowed threads (0-999).
  326. #
  327. # Sometimes under certain circumstances the program may create way to many
  328. # download threads. Most of them are in wait-state. That is not bad,
  329. # but threads are usually a limited resource. If a program creates to many
  330. # of them, operating system may kill it. The option <ThreadLimit> prevents that.
  331. #
  332. # NOTE: the number of threads is not the same as the number of connections
  333. # opened to NNTP-servers. Do not use the option <ThreadLimit> to limit the
  334. # number of connections. Use the appropriate options <ServerX.Connections>
  335. # instead.
  336. #
  337. # NOTE: the actual number of created threads can be slightly larger as
  338. # defined by the option. Important threads may be created even if the
  339. # number of threads is exceeded. The option prevents only the creation of
  340. # additional download threads.
  341. #
  342. # NOTE: in most cases you should leave the default value "100" unchanged.
  343. # However you may increase that value if you need more than 90 connections
  344. # (that's very unlikely) or decrease the value if the OS does not allow so
  345. # many threads. But the most OSes should not have problems with 100 threads.
  346. ThreadLimit=100
  347.  
  348. # Set the maximum download rate on program start (kilobytes/sec).
  349. #
  350. # Value "0" means no speed control.
  351. # The download rate can be changed later via remote calls.
  352. DownloadRate=0
  353.  
  354. # Set the size of memory buffer used by writing the articles (bytes).
  355. #
  356. # Bigger values decrease disk-io, but increase memory usage.
  357. # Value "0" causes an OS-dependent default value to be used.
  358. # With value "-1" (which means "max/auto") the program sets the size of
  359. # buffer according to the size of current article (typically less than 500K).
  360. #
  361. # NOTE: the value must be written in bytes, do not use postfixes "K" or "M".
  362. #
  363. # NOTE: to calculate the memory usage multiply WriteBufferSize by max number
  364. # of connections, configured in section "NEWS-SERVERS".
  365. #
  366. # NOTE: typical article's size not exceed 500000 bytes, so using bigger values
  367. # (like several megabytes) will just waste memory.
  368. #
  369. # NOTE: for desktop computers with large amount of memory value "-1" (max/auto)
  370. # is recommended, but for computers with very low memory (routers, NAS)
  371. # value "0" (default OS-dependent size) could be better alternative.
  372. #
  373. # NOTE: write-buffer is managed by OS (system libraries) and therefore
  374. # the effect of the option is highly OS-dependent.
  375. WriteBufferSize=0
  376.  
  377. # Pause if disk space gets below this value (megabytes).
  378. #
  379. # Value "0" disables the check.
  380. # Only the disk space on the drive with <DestDir> is checked.
  381. # The drive with <TempDir> is not checked.
  382. DiskSpace=5000
  383.  
  384. # Delete already downloaded files from disk, if the download of nzb-file was
  385. # cancelled (nzb-file was deleted from queue) (yes, no).
  386. #
  387. # NOTE: nzbget does not delete files in a case if all remaining files in
  388. # queue are par-files. That prevents the accidental deletion if the option
  389. # <ParCleanupQueue> is disabled or if the program was interrupted during
  390. # parcheck and later restarted without reloading of post queue (option
  391. # <ReloadPostQueue> disabled).
  392. DeleteCleanupDisk=no
  393.  
  394. # Keep the history of downloaded nzb-files (days).
  395. #
  396. # Value "0" disables the history.
  397. #
  398. # NOTE: when a collection having paused files is added to history all remaining
  399. # files are moved from download queue to a list of parked files. It holds files
  400. # which could be required later if the collection will be moved back to
  401. # download queue for downloading of remaining files. The parked files still
  402. # consume some amount of memory and disk space. If the collection was downloaded
  403. # and successfully par-checked or postprocessed it is recommended to discard the
  404. # unneeded parked files before adding the collection to history. For par2-files
  405. # that can be achieved with the option <ParCleanupQueue>.
  406. KeepHistory=14
  407.  
  408. ##############################################################################
  409. ### LOGGING ###
  410.  
  411. # Create log file (yes, no).
  412. CreateLog=yes
  413.  
  414. # Delete log file upon server start (only in server-mode) (yes, no).
  415. ResetLog=no
  416.  
  417. # How error messages must be printed (screen, log, both, none).
  418. ErrorTarget=both
  419.  
  420. # How warning messages must be printed (screen, log, both, none).
  421. WarningTarget=both
  422.  
  423. # How info messages must be printed (screen, log, both, none).
  424. InfoTarget=both
  425.  
  426. # How detail messages must be printed (screen, log, both, none).
  427. DetailTarget=both
  428.  
  429. # How debug messages must be printed (screen, log, both, none).
  430. #
  431. # Debug-messages can be printed only if the program was compiled in
  432. # debug-mode: "./configure --enable-debug".
  433. DebugTarget=both
  434.  
  435. # Set the default message-kind for output received from process-scripts
  436. # (PostProcess, NzbProcess, TaskX.Process) (none, detail, info, warning,
  437. # error, debug).
  438. #
  439. # NZBGet checks if the line written by the script to stdout or stderr starts
  440. # with special character-sequence, determining the message-kind, e.g.:
  441. # [INFO] bla-bla.
  442. # [DETAIL] bla-bla.
  443. # [WARNING] bla-bla.
  444. # [ERROR] bla-bla.
  445. # [DEBUG] bla-bla.
  446. #
  447. # If the message-kind was detected the text is added to log with detected type.
  448. # Otherwise the message becomes the default kind, specified in this option.
  449. ProcessLogKind=detail
  450.  
  451. # Number of messages stored in buffer and available for remote
  452. # clients (messages).
  453. LogBufferSize=1000
  454.  
  455. # Create a log of all broken files (yes ,no).
  456. #
  457. # It is a text file placed near downloaded files, which contains
  458. # the names of broken files.
  459. CreateBrokenLog=yes
  460.  
  461. # Create memory dump (core-file) on abnormal termination, Linux only (yes, no).
  462. #
  463. # Core-files are very helpful for debugging.
  464. #
  465. # NOTE: core-files may contain sensible data, like your login/password to
  466. # newsserver etc.
  467. DumpCore=no
  468.  
  469. # See also option <LogFile> in section "PATHS"
  470.  
  471.  
  472. ##############################################################################
  473. ### DISPLAY (TERMINAL) ###
  474.  
  475. # Set screen-outputmode (loggable, colored, curses).
  476. #
  477. # loggable - only messages will be printed to standard output;
  478. # colored - prints messages (with simple coloring for messages categories)
  479. # and download progress info; uses escape-sequences to move cursor;
  480. # curses - advanced interactive interface with the ability to edit
  481. # download queue and various output option.
  482. OutputMode=curses
  483.  
  484. # Shows NZB-Filename in file list in curses-outputmode (yes, no).
  485. #
  486. # This option controls the initial state of curses-frontend,
  487. # it can be switched on/off in run-time with Z-key.
  488. CursesNzbName=yes
  489.  
  490. # Show files in groups (NZB-files) in queue list in curses-outputmode (yes, no).
  491. #
  492. # This option controls the initial state of curses-frontend,
  493. # it can be switched on/off in run-time with G-key.
  494. CursesGroup=no
  495.  
  496. # Show timestamps in message list in curses-outputmode (yes, no).
  497. #
  498. # This option controls the initial state of curses-frontend,
  499. # it can be switched on/off in run-time with T-key.
  500. CursesTime=no
  501.  
  502. # Update interval for Frontend-output in console mode or remote client
  503. # mode (milliseconds).
  504. #
  505. # Min value 25. Bigger values reduce CPU usage (especially in curses-outputmode)
  506. # and network traffic in remote-client mode.
  507. UpdateInterval=200
  508.  
  509.  
  510. ##############################################################################
  511. ### CLIENT/SERVER COMMUNICATION ###
  512.  
  513. # IP on which the server listen and which client uses to contact the server.
  514. #
  515. # It could be dns-hostname or ip-address (more effective since does not
  516. # require dns-lookup).
  517. # If you want the server to listen to all interfaces, use "0.0.0.0".
  518. ServerIp=127.0.0.1
  519.  
  520. # Port which the server & client use (1-65535).
  521. ServerPort=6789
  522.  
  523. # Password which the server & client use.
  524. ServerPassword=tegbzn6789
  525.  
  526. # See also option <LogBufferSize> in section "LOGGING"
  527.  
  528.  
  529. ##############################################################################
  530. ### PAR CHECK/REPAIR ###
  531.  
  532. # How many par2-files to load (none, all, one).
  533. #
  534. # none - all par2-files must be automatically paused;
  535. # all - all par2-files must be downloaded;
  536. # one - only one main par2-file must be dowloaded and other must be paused.
  537. # Paused files remain in queue and can be unpaused by parchecker when needed.
  538. LoadPars=one
  539.  
  540. # Automatic par-verification (yes, no).
  541. #
  542. # To download only needed par2-files (smart par-files loading) set also
  543. # the option <LoadPars> to "one". If option <LoadPars> is set to "all",
  544. # all par2-files will be downloaded before verification and repair starts.
  545. # The option <RenameBroken> must be set to "no", otherwise the par-checker
  546. # may not find renamed files and fail.
  547. ParCheck=yes
  548.  
  549. # Automatic par-repair (yes, no).
  550. #
  551. # If option <ParCheck> is enabled and <ParRepair> is not, the program
  552. # only verifies downloaded files and downloads needed par2-files, but does
  553. # not start repair-process. This is useful if the server does not have
  554. # enough CPU power, since repairing of large files may take too much
  555. # resources and time on a slow computers.
  556. # This option has effect only if the option <ParCheck> is enabled.
  557. ParRepair=yes
  558.  
  559. # Use only par2-files with matching names (yes, no).
  560. #
  561. # If par-check needs extra par-blocks it searches for par2-files
  562. # in download queue, which can be unpaused and used for restore.
  563. # These par2-files should have the same base name as the main par2-file,
  564. # currently loaded in par-checker. Sometimes extra par files (especially if
  565. # they were uploaded by a different poster) have not matching names.
  566. # Normally par-checker does not use these files, but you can allow it
  567. # to use these files by setting <StrictParName> to "no".
  568. # This has however a side effect: if NZB-file contains more than one collection
  569. # of files (with different par-sets), par-checker may download par-files from
  570. # a wrong collection. This increases you traffic (but not harm par-check).
  571. #
  572. # NOTE: par-checker always uses only par-files added from the same NZB-file
  573. # and the option <StrictParName> does not change this behavior.
  574. StrictParName=yes
  575.  
  576. # Maximum allowed time for par-repair (minutes).
  577. #
  578. # Value "0" means unlimited.
  579. #
  580. # If you use nzbget on a very slow computer like NAS-device, it may be good to
  581. # limit the time allowed for par-repair. Nzbget calculates the estimated time
  582. # required for par-repair. If the estimated value exceeds the limit defined
  583. # here, nzbget cancels the repair.
  584. #
  585. # To avoid a false cancellation nzbget compares the estimated time with
  586. # <ParTimeLimit> after the first 5 minutes of repairing, when the calculated
  587. # estimated time is more or less accurate. But in a case if <ParTimeLimit> is
  588. # set to a value smaller than 5 minutes, the comparison is made after the first
  589. # whole minute.
  590. #
  591. # NOTE: the option limits only the time required for repairing. It doesn't
  592. # affect the first stage of parcheck - verification of files. However the
  593. # verification speed is constant, it doesn't depend on files integrity and
  594. # therefore it is not necessary to limit the time needed for the first stage.
  595. #
  596. # NOTE: this option requires an extended version of libpar2 (the original
  597. # version doesn't support the cancelling of repairing). Please refer to
  598. # nzbget's README for info on how to apply a patch to libpar2.
  599. ParTimeLimit=0
  600.  
  601. # Pause download queue during check/repair (yes, no).
  602. #
  603. # Enable the option to give CPU more time for par-check/repair. That helps
  604. # to speed up check/repair on slow CPUs with fast connection (e.g. NAS-devices).
  605. #
  606. # NOTE: if parchecker needs additional par-files it temporary unpauses queue.
  607. #
  608. # NOTE: See also option <PostPauseQueue>.
  609. ParPauseQueue=yes
  610.  
  611. # Cleanup download queue after successful check/repair (yes, no).
  612. #
  613. # Enable this option for automatic deletion of unneeded (paused) par-files
  614. # from download queue after successful check/repair.
  615. ParCleanupQueue=yes
  616.  
  617. # Delete source nzb-file after successful check/repair (yes, no).
  618. #
  619. # Enable this option for automatic deletion of nzb-file from incoming directory
  620. # after successful check/repair.
  621. NzbCleanupDisk=no
  622.  
  623.  
  624. ##############################################################################
  625. ### POSTPROCESSING ###
  626.  
  627. # Set path to program, that must be executed after the download of nzb-file
  628. # or one collection in nzb-file (if par-check enabled and nzb-file contains
  629. # multiple collections; see note below for the definition of "collection")
  630. # is completed and possibly par-checked/repaired.
  631. #
  632. # Example: "PostProcess=~/postprocess-example.sh".
  633. #
  634. # NZBGet passes following arguments to postprocess-program as environment
  635. # variables:
  636. # NZBPP_DIRECTORY - path to destination dir for downloaded files;
  637. # NZBPP_NZBFILENAME - name of processed nzb-file;
  638. # NZBPP_PARFILENAME - name of par-file or empty string (if no collections were
  639. # found);
  640. # NZBPP_PARSTATUS - result of par-check:
  641. # 0 = not checked: par-check disabled or nzb-file does
  642. # not contain any par-files;
  643. # 1 = checked and failed to repair;
  644. # 2 = checked and successfully repaired;
  645. # 3 = checked and can be repaired but repair is disabled;
  646. # NZBPP_NZBCOMPLETED - state of nzb-job:
  647. # 0 = there are more collections in this nzb-file queued;
  648. # 1 = this was the last collection in nzb-file;
  649. # NZBPP_PARFAILED - indication of failed par-jobs for current nzb-file:
  650. # 0 = no failed par-jobs;
  651. # 1 = current par-job or any of the previous par-jobs for
  652. # the same nzb-files failed;
  653. # NZBPP_CATEGORY - category assigned to nzb-file (can be empty string).
  654. #
  655. # If nzb-file has associated postprocess-parameters (which can be set using
  656. # subcommand <O> of command <-E>, for example: nzbget -E G O "myvar=hello !" 10)
  657. # or using XML-/JSON-RPC (for example via web-interface), they are also passed
  658. # as environment variables. These variables have prefix "NZBPR_" in their names.
  659. # For example, pp-parameter "myvar" will be passed as environment
  660. # variable "NZBPR_myvar".
  661. #
  662. # In addition to arguments and postprocess-parameters nzbget passes all
  663. # nzbget.conf-options to postprocess-program as environment variables. These
  664. # variables have prefix "NZBOP_" and are written in UPPER CASE. For Example
  665. # option "ParRepair" is passed as environment variable "NZBOP_PARREPAIR".
  666. # The dots in option names are replaced with underscores, for example
  667. # "SERVER1_HOST". For options with predefined possible values (yes/no, etc.)
  668. # the values are passed always in lower case.
  669. #
  670. # Return value: nzbget processes the exit code returned by the script:
  671. # 91 - request nzbget to do par-check/repair for current collection in the
  672. # current nzb-file;
  673. # 92 - request nzbget to do par-check/repair for all collections in the
  674. # current nzb-file;
  675. # 93 - post-process successful (status = SUCCESS);
  676. # 94 - post-process failed (status = FAILURE);
  677. # 95 - post-process skipped (status = NONE);
  678. # All other return codes are interpreted as "status unknown".
  679. #
  680. # The return value is used to display the status of post-processing in
  681. # a history view. In addition to status one or more text messages can be
  682. # passed to history using a special prefix "[HISTORY]" by printing messages
  683. # to standard output. For example:
  684. # echo "[ERROR] [HISTORY] Unpack failed, not enough disk space";
  685. #
  686. # NOTE: The parameter NZBPP_NZBCOMPLETED is very important and MUST be checked
  687. # even in the simplest scripts.
  688. # If par-check is enabled and nzb-file contains more than one collection
  689. # of files the postprocess-program is called after each collection is completed
  690. # and par-checked. If you want to unpack files or clean up the directory
  691. # (delete par-files, etc.) there are two possibilities, when you can do this:
  692. # 1) you parse NZBPP_PARFILENAME to find out the base name of collection and
  693. # clean up only files from this collection (not reliable, because par-files
  694. # sometimes have different names than rar-files);
  695. # 2) or you just check the parameters NZBPP_NZBCOMPLETED and NZBPP_PARFAILED
  696. # and do the processing, only if NZBPP_NZBCOMPLETED is set to "1" (which
  697. # means, that this was the last collection in nzb-file and all files
  698. # are now completed) and NZBPP_PARFAILED is set to "0" (no failed par-jobs);
  699. #
  700. # NOTE: the term "collection" in the above description actually means
  701. # "par-set". To determine what "collections" are present in nzb-file nzbget
  702. # looks for par-sets. If any collection of files within nzb-file does
  703. # not have any par-files, this collection will not be detected.
  704. # For example, for nzb-file containing three collections but only two par-sets,
  705. # the postprocess will be called two times - after processing of each par-set.
  706. #
  707. # NOTE: if nzbget doesn't find any collections it calls PostProcess once
  708. # with empty string for parameter NZBPP_PARFILENAME;
  709. #
  710. # NOTE: the using of special return values (91 and 92) for requesting of
  711. # par-check/repair allows to organize the delayed parcheck. To do that:
  712. # 1) set options: LoadPars=one, ParCheck=no, ParRepair=yes;
  713. # 2) in post-process-script check the parameter NZBPP_PARSTATUS. If it is "0",
  714. # that means, the script is called for the first time. Try to unpack files.
  715. # If unpack fails, exit the script with exit code for par-check/repair;
  716. # 3) nzbget will start par-check/repair. After that it calls the script again;
  717. # 4) on second pass the parameter NZBPP_PARSTATUS will have value
  718. # greater than "0". If it is "2" ("checked and successfully repaired")
  719. # you can try unpack again.
  720. #
  721. # NOTE: an example script for unrarring is provided within distribution
  722. # in file "postprocess-example.sh".
  723. PostProcess=/Users/frontrow/bin/nzbget/postprocess.sh
  724.  
  725. # Allow multiple post-processing for the same nzb-file (yes, no).
  726. #
  727. # After the post-processing (par-check and call of a postprocess-script) is
  728. # completed, nzbget adds the nzb-file to a list of completed-jobs. The nzb-file
  729. # stays in the list until the last file from that nzb-file is deleted from
  730. # the download queue (it occurs straight away if the par-check was successful
  731. # and the option <ParCleanupQueue> is enabled).
  732. # That means, if a paused file from a nzb-collection becomes unpaused
  733. # (manually or from a post-process-script) after the collection was already
  734. # postprocessed nzbget will not post-process nzb-file again.
  735. # This prevents the unwanted multiple post-processings of the same nzb-file.
  736. # But it might be needed if the par-check/-repair are performed not directly
  737. # by nzbget but from a post-process-script.
  738. #
  739. # NOTE: enable this option only if you were advised to do that by the author
  740. # of the post-process-script.
  741. #
  742. # NOTE: by enabling <AllowReProcess> you should disable the option <ParCheck>
  743. # to prevent multiple par-checking.
  744. AllowReProcess=no
  745.  
  746. # Pause download queue during executing of postprocess-script (yes, no).
  747. #
  748. # Enable the option to give CPU more time for postprocess-script. That helps
  749. # to speed up postprocess on slow CPUs with fast connection (e.g. NAS-devices).
  750. #
  751. # NOTE: See also option <ParPauseQueue>.
  752. PostPauseQueue=yes
  753.  
  754.  
  755. ##############################################################################
  756. ### SCHEDULER ###
  757.  
  758. # This section defines scheduler commands.
  759. # For each command create a set of options <TaskX.Time>, <TaskX.Command>,
  760. # <TaskX.WeekDays> and <TaskX.DownloadRate>.
  761. # The following example shows how to throttle downloads in the daytime
  762. # by 100 KB/s and download at full speed overnights:
  763.  
  764. # Time to execute the command (HH:MM).
  765. #
  766. # Multiple comma-separated values are accepted.
  767. # Asterix as hours-part means "every hour".
  768. #
  769. # Examples: "08:00", "00:00,06:00,12:00,18:00", "*:00", "*:00,*:30".
  770. #Task1.Time=08:00
  771.  
  772. # Week days to execute the command (1-7).
  773. #
  774. # Comma separated list of week days numbers.
  775. # 1 is Monday.
  776. # Character '-' may be used to define ranges.
  777. #
  778. # Examples: "1-7", "1-5", "5,6", "1-5, 7".
  779. #Task1.WeekDays=1-7
  780.  
  781. # Command to be executed (PauseDownload, UnpauseDownload, PauseScan,
  782. # UnpauseScan, DownloadRate, Process).
  783. #
  784. # Possible commands:
  785. # PauseDownload - pauses download;
  786. # UnpauseDownload - resumes download;
  787. # PauseScan - pauses scan of incoming nzb-directory;
  788. # UnpauseScan - resumes scan of incoming nzb-directory;
  789. # DownloadRate - sets download rate in KB/s;
  790. # Process - executes external program.
  791. #Task1.Command=DownloadRate
  792.  
  793. # Download rate to be set if the command is "DownloadRate" (kilobytes/sec).
  794. #
  795. # Value "0" means no speed control.
  796. #
  797. # If the option <TaskX.Command> is not set to "DownloadRate" this option
  798. # is ignored and can be omitted.
  799. #Task1.DownloadRate=100
  800.  
  801. # Path to the porgram to execute if the command is "Process".
  802. #
  803. # Example: "Task1.Process=/home/user/fetch-nzb.sh".
  804. #
  805. # If the option <TaskX.Command> is not set to "Process" this option
  806. # is ignored and can be omitted.
  807. #
  808. # NOTE: it's allowed to add parameters to command line. If filename or
  809. # any parameter contains spaces it must be surrounded with single quotation
  810. # marks. If filename/parameter contains single quotation marks, each of them
  811. # must be replaced with two single quotation marks and the resulting filename/
  812. # parameter must be surrounded with single quotation marks.
  813. # Example: '/home/user/download/my scripts/task process.sh' 'world''s fun'.
  814. # In this example one parameter (world's fun) is passed to the script
  815. # (task process.sh).
  816. #Task1.Process=
  817.  
  818. #Task2.Time=20:00
  819. #Task2.WeekDays=1-7
  820. #Task2.Command=DownloadRate
  821. #Task2.DownloadRate=0
  822.  
  823. Task1.Time=08:00
  824. Task1.WeekDays=1-7
  825. Task1.Command=Pause
  826. Task1.DownloadRate=0
  827.  
  828. Task2.Time=09:30
  829. Task2.WeekDays=1-7
  830. Task2.Command=Pause
  831. Task2.DownloadRate=0
  832.  
  833. Task3.Time=00:25
  834. Task3.WeekDays=1-7
  835. Task3.Command=Unpause
  836. Task3.DownloadRate=0
  837.  
  838. ##############################################################################
  839. ## PERFORMANCE ##
  840.  
  841. # On a very fast connection and slow CPU and/or drive the following
  842. # settings may improve performance:
  843. # 1) Disable par-checking and -repairing ("ParCheck=no"). VERY important,
  844. # because par-checking/repairing needs a lot of CPU-power and
  845. # significantly increases disk usage;
  846. # 2) Try to activate option <DirectWrite> ("DirectWrite=yes"), especially
  847. # if you use EXT3-partitions;
  848. # 3) Disable option <CrcCheck> ("CrcCheck=no");
  849. # 4) Disable option <ContinuePartial> ("ContinuePartial=no");
  850. # 5) Do not limit download rate ("DownloadRate=0"), because the bandwidth
  851. # throttling eats some CPU time;
  852. # 6) Disable logging for detail- and debug-messages ("DetailTarget=none",
  853. # "DebugTarget=none");
  854. # 7) Run the program in daemon (Posix) or service (Windows) mode and use
  855. # remote client for short periods of time needed for controlling of
  856. # download process on server. Daemon/Service mode eats less CPU
  857. # resources than console server mode due to not updating the screen.
  858. # 8) Increase the value of option <WriteBufferSize> or better set it to
  859. # "-1" (max/auto) if you have spare 5-20 MB of memory.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement