Advertisement
Guest User

Untitled

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