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.
We who have developed nzbToMedia believe in the openess of open-source, and as such we hope that any modifications will lead back to the orignal repo via pull requests.
Founder: clinton-hall
Contributors: Can be viewed here
In order to use the transcoding option you will need to install ffmpeg. Installation instructions for this are available in the wiki
Download the the compiled versions of this code from the links provided here nzbToMedia installation
-
Clone or copy 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 ;)
-
Place the nzbToMedia folder inside the ppscripts folder. These scripts can now be configured via the web UI.
-
Run scripts (for all required categories) in this order.
DeleteSamples.py, nzbToMedia*.py, Email.py, Logger.py
-
For Windows compiled versions, set the same config for all categories.
DeleteSamples.bat, nzbToMedia.bat
- Please report all issues, or potential enhancements using the issues page on this repo.