Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- #------------------------------------------
- # SabNZBD post processing script TV series
- #
- # use this script for sabNZBd post processing
- #
- # Author: J. van Emden (Brickman)
- # Latest version: http://synology.brickman.nl
- #
- # Location: /volume1/@appstore/scripts/sab
- #
- # Requirements:
- # - subli_findTV_sab.sh
- # - sabToSickBeard.py
- # - autoProcessTV.cfg (example: http://dl.dropbox.com/u/5653370/syn_files/sickbeard/autoProcessTV.cfg)
- #
- # Version:
- # 2011-12-19:
- # - Initial release
- #
- #------------------------------------------
- #
- PATH_TO_PYTHON=/usr/local/python26/bin/python
- #PATH_TO_PYTHON=$(which python2.6) # Find the Python 2.6 executable if installed with iPKG
- # if you use the Zebulon package then it is /usr/local/python26/bin/python
- PATH_TO_POST=/volume1/@appstore/scripts/sab # Folder of the sabNZBd post processing scripts
- ## sabnzbd parameters (can be set as a postprocessor for a certain category
- # 1 The final directory of the job (full path)
- # 2 The original name of the NZB file
- # 3 Clean version of the job name (no path info and ".nzb" removed)
- # 4 Indexer's report number (if supported)
- # 5 User-defined category
- # 6 Group that the NZB was posted in e.g. alt.binaries.x
- # 7 Status of post processing. 0 = OK, 1=failed verification, 2=failed unpack, 3=1+21
- if [ $# -lt 2 ]; then
- echo "No folder supplied - is this being called from SABnzbd?"
- exit;
- elif [ $# -ge 3 ]; then
- # Find subtitles
- sh ${PATH_TO_POST}/subli_findTV_sab.sh "$1" "$2" "$3"
- # Send it to Sick Beard
- $PATH_TO_PYTHON ${PATH_TO_POST}/sabToSickBeard.py "$1" "$2" "$3"
- else
- # Find subtitles
- sh ${PATH_TO_POST}/subli_findTV_sab.sh "$1" "$2"
- # Send it to Sick Beard
- # $PATH_TO_PYTHON ${PATH_TO_POST}/sabToSickBeard.py "$1" "$2"
- $PATH_TO_PYTHON /usr/local/var/sickbeard/autoProcessTV/sabToSickBeard.py "$1" "$2"
- fi
Advertisement
Add Comment
Please, Sign In to add comment