Provides an efficient way to handle postprocessing for CouchPotatoServer and SickBeard when using one of the popular NZB download clients like SABnzbd and NZBGet on low performance systems like a NAS. This script is based on sabToSickBeard (written by Nic Wolfe and supplied with SickBeard), with the support for NZBGet being added by thorli and further contributions by schumi2004 and hugbug. Torrent suport added by jkaberg and berkona
Originally this was modifed from the SickBeard version to allow for "on-demand" renaming and not have My QNAP TS-412 NAS constantly scanning the download directory. Later, a few failed downloads prompted me to incorporate "failed download" handling. Failed download handling is now provided for sabnzbd, by CouchPotatoServer; however on arm processors (e.g. small NAS systems) this can be un-reliable.
thorli's Synology DS211j was too weak to provide decent download rates with SABnzbd and CouchPotatoServer even by using sabToCouchPotato; His only alternative (as with many many QNAP and Synology users) was to switch to NZBGet which uses far less resources and helps to reach the full download speed.
The renamer of CouchPotatoServer caused broken downloads by interfering with NZBGet while it was still unpacking the files. Hence the solution was thorli's version of sabToCouchPotato which has now been named "nzbToCouchPotato".
Failed download handling for SickBeard is available by using the development branch from fork SickBeard-failed To use this feature, in autoProcessTV.cfg set the parameter "failed_fork=1". Default is 0 and will work with standard version of SickBeard and just ignores failed downloads.
Torrent support has been added with the assistance of jkaberg and berkona. Currently supports uTorrent, Transmissions, Deluge and possibly more. To enable Torrent extraction, on Windows, you need to install 7-zip or on *nix you need to install the following packages/commands.
"unrar", "unzip", "tar", "7zr"
note: "7zr" is available from the p7zip package. Available on optware.
Download the the compiled versions of this code here nzbToMedia - win.zip
For nzbget downlaod the Full package with nzbget support (including shell script environment) from here nzbToMedia - win - nzbget support.zip
Copy all files from *\nzbToMedia\nzbget-postprocessing-files\Shell\ to a location in your system path, or add the location of these files to the system path. e.g. copy to "C:\Program Files (x86)\Shell" and add "C:\Program Files (x86)\Shell" to system path.
-
Clone all files into a directory wherever you want to keep them (eg. /scripts/ in the home directory of your nzb client) and change the permission accordingly so the download client can access these files.
git clone git://github.com/clinton-hall/nzbToMedia.git
-
Rename the file autoProcessMedia.cfg.sample to autoProcessMedia.cfg and fill in the appropriate fields in [SickBeard], [CouchPotato], [Torrent]as they apply to your installation.
-
Please read the wiki pages on this repo for further configuration settings appropriate to your system.
-
Please add to the wiki pages to help assist others ;)
- Please report all issues, or potential enhancements using the issues page on this repo.