Skip to content
neo-neo1 edited this page Sep 9, 2021 · 19 revisions

NZBGet

  1. Set the ScriptDir in NZBGet, settings, PATHS, ScriptDir to your nzbToMedia folder or clone nzbToMedia into the default ScriptDir.
  2. All postprocessing scripts are now available to NZBGet and can be configured from the webUI NZBGet, settings (no need to edit autoProcessMedia.cfg). Just apply the appropriate settings and save all changes before starting a download.
  1. Set the scripts to run in this order in NZBGet, settings, EXTENSION SCRIPTS, ScriptOrder: DeleteSamples, ResetDateTime, nzbTo*, Email, Logger
  2. Choose which scripts you want for default and for each category in NZBGet, settings, CATEGORIES, Categoryx.PostScript. eg
  • Category1Name = TV
  • Category1PostScript = DeleteSamples.py, ResetDateTime.py, nzbToSickBeard.py, Email.py, Logger.py
  • Category2Name = movies
  • Category2PostScript = DeleteSamples.py, ResetDateTime.py, nzbToCouchPotato.py, Email.py, Logger.py

Email and Logger can be removed if you don't want these enabled

  1. In order for correct failed download handling with SickBeard and CouchPotato
  • NZBGet, Settings, CHECK AND REPAIR, HealthCheck = Delete
  • NZBGet, Settings, DOWNLOAD QUEUE, NzbCleanupDisk = No
  1. Download Queue, PostStrategy = Sequential or Balanced
  • Note that if Aggressive or Rocket is set, nzbToMedia will only allow 1 instance to run at any time, and will therefore have stalled processes running.

Synology (SynoCommunity NZBGet package)

These steps are necessary to allow nzbToMedia to update itself using git.

SSH into your Synology. Edit the autoProcessMedia.cfg file located in the nzbToMedia folder:

vi /pat/to/nzbToMedia/autoProcessMedia.cfg

Under [General] Set the git_path variable to the git binary from the git package:

git_path = /usr/local/git/bin/git

Make sure the nzbget user is owner of the ppscript folder 'nzbToMedia':

New SynoCommunity package:
chown -R sc-nzbget:users /path/to/nzbToMedia

Old SynoCommunity package:
chown -R nzbget:users /path/to/nzbToMedia

Example:
chown -R sc-nzbget:users /volume1/@appstore/nzbget/share/nzbget/scripts/nzbToMedia

If nzbToMedia doesn't execute properly after an update, you might need to remove the old *.pyc files. Run inside the nzbToMedia folder:

find . -name "*.pyc" -exec rm -f {} \;

Windows

You should install python and then run the source version of these scripts following the directions above.

The details below relate to the (now obsolete) compiled .exe versions that I am not planning to maintain any longer.

If you want to use the compiled versions from here Compiled Scripts

you need to put the nzbToMedia folder into the scripts folder, and again configure the 3 scripts as per autoProcessMedia.cfg

Set the scripts to run in this order: DeleteSamples.bat, ResetDateTime.bat, nzbToMedia.bat

Set these scripts for all categories to be processed. DeleteSamples.bat, ResetDateTime.bat, nzbToMedia.bat

Clone this wiki locally