Skip to content
clinton-hall edited this page Apr 4, 2013 · 19 revisions

NZBGet

If you are using NZBGet perform the following steps to configure postprocessing for "nzbToCouchPotato":

  1. 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!

  2. 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=
    
  3. 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=
    
  4. 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.

     Email_From=nzbget@nas.home
    

    v. Enter the email address you want this email to be sent to.

     Email_To=me@home.net
    

    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
    

email config issues.

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.

  1. 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.

  2. 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
    
Clone this wiki locally