-
Notifications
You must be signed in to change notification settings - Fork 174
nzbget
Copy the entire nzbToMedia folder into the NZBGet ppScripts folder. All postprocessing scripts are now available to NZBGet and can be configured from the webUI (no need to edit autoProcessMedia.cfg). Just apply the appropriate settings and save all changes before starting a download.
For details on what settings to use look here autoProcessMedia.cfg
Set the scripts to run in this order:
DeleteSamples, nzbTo*, Email, Logger
Choose which scripts you want for default and for each category. eg Category TV should run :
DeleteSamples.py, nzbToSickBeard.py, Email.py (if wanted), Logger.py (if wanted).
You should try installing python and then run the source version of these scripts following the directions above.
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 2 scripts as per autoProcessMedia.cfg
This does not include email or logger options at this time (although these could be compiled if demand exists)
Set the scripts to run in this order:
DeleteSamples.bat, nzbToMedia.bat
Set these scripts for all categories to be processed.
DeleteSamples.bat (for TV and Movies), nzbToMedia.bat
If you are using NZBGet perform the following steps to configure postprocessing for "nzbToCouchPotato":
-
Replace the config files with the ones from the included "nzbget-postprocessing-files" according to the version you are using (0.8.0 or 9.0):
These files enable additional postprocessing settings for CouchPotato and SickBeard, as well as a "Custom" postprocess script, in the NZBGet webinterface. If NZBGet is running either restart (0.8.0) or reload (9.0) to activate the changes after you have replaced the files. To be on the safe side, don't forget to make a backup of the existing files!
-
In NZBGet go to "POSTPROCESSING SCRIPT" -> "PATHS" and change as needed:
i. Set the full path to python if it is not in your PATH. (option is required) These scripts now have -x permissions and should be as such on your system. Python needs to be in your system path.
PythonCmd=/usr/local/python/bin/python
ii. Set the full path to sabToSickBeard.py for SickBeard's postprocessing.
NzbToSickBeard=/usr/local/nzbget/var/nzbToSickBeard.py
iii. Set the full path where completed movies should be placed before SickBeard's Renamer is called (option) (v 9.0 only). For n 10.0 set this in the appropriate category settings in the Categories Section.
TvDownloadDir=
iv. Set the full path to nzbToCouchpotato.py for Couchpotato's postprocessing
NzbToCouchPotato=/usr/local/nzbget/var/nzbToCouchPotato.py
v. Set the full path where completed movies should be placed before CouchPotato's Renamer is called (option) (v 9.0 only). For n 10.0 set this in the appropriate category settings in the Categories Section.
MoviesDownloadDir=
vi. Set the full path to any dependency required for your Custom Postprocess script if it is not in your PATH.(option is required)
CustomCmd=/usr/local/python/bin/python
vii. Set the full path to the Custom Postprocess script. (option)
CustomScript=
viii.Set the full path where completed downloads should be placed before the Custom postprocess is called (option) (v 9.0 only). For n 10.0 set this in the appropriate category settings in the Categories Section.
CustomDownloadDir=
-
Then go to "POSTPROCESSING SCRIPT" -> "OPTIONS" and set:
i. Perform SickBeard's postprocessing (yes, no).
SickBeard=yes
ii. Category for SickBeard's postprocessing.
SickBeardCategory=tv
iii. Perform Couchpotato's postprocessing (yes, no).
CouchPotato=yes
iv. Category for Couchpotato's postprocessing. (option)
CouchPotatoCategory=movies
v. Perform Custom postprocessing (yes, no). (option)
Custom=
vi. Category for Custom postprocessing (eg. movies) (option)
CustomCategory=
-
Then go to "POSTPROCESSING SCRIPT" -> "EMAIL-PARAMETERS" and set:
i. Specify the categories for which you want emails to be sent for successful downloads. For all categories, simply set Email_successful='all'
Email_successful='tv movies music comics games pictures'
ii. Specify the categories for which you want emails to be sent for failed downloads. For all categories, simply set Email_failed='all'
Email_failed='tv movies music comics games pictures'
iii. Set the full path and file name for sendEmail application (as supplied in this repository).
sendEmail=/usr/local/nzbget/var/sendEmail/sendEmail
iv. Enter the email address you want this email to be sent from.
v. Enter the email address you want this email to be sent to.
vi. Enter smtp server and port. eg smtp.live.com:25
Email_Server=smtp.gmail.com
vii. Enter your smtp server user name (if required)
Email_User=usernameonly (must not contain @gmail.com only the username.)
viii.If your mail server requires tsl support select yes. If not, select no. Default is Auto which should choose as needed.
Tsl=auto ix. Enter your smtp server password (if required) Email_Pass=
x. Enter your email subject, in single quotes.
Use <status> to add 'completed'/'failed' Use <name> to add the nzb name Use <cat> to add the download categoty. Use <script> to name the external script used. Email_Subject='The download of <name> has <status>.'
xi. Enter your email message, in single quotes.
Use the same substitutes as described above. Use \r\n for new line. Email_Message='The download of <name> has <status>. \r\n This has been processed by the script <script> for category <cat>' xii. If you want the postprocessing log file appended to the email select yes. Add_Log =yes
If you have issues with emails not sending, common issue is that your server requires tsl and your system doesn't support this.
you have 2 options.
-
Use a server that does not require tsl. for example, your local isp probaly has a smtp server that doesnt require tsl when sent from on thier network.
-
Try installing the Net::SSLeay and IO::Socket::SSL perl modules
via Optware this is as easy as:
ipkg install perl ipkg install perl-io-socket-ssl ipkg install perl-net-ssleay
Also, depending on your system you may not have /usr/bin/perl (e.g Optware or QNAP etc) to fix this just create a symlink to your perl module
ln -sf /opt/bin/perl /usr/bin/perl