-
Notifications
You must be signed in to change notification settings - Fork 3
Shell Usage
scrathe edited this page Feb 15, 2018
·
8 revisions
There are eight possible parameters that can be passed into the tardisIVRvideo.sh script. The first seven params are the standard defined by SABnzbd:
$1=DIR="/media/tardis-x/media/Movies/Movie (2013)/"
$2=NZB_FILE="Movie (2013).nzb"
$3=NAME="Movie (2013)"
$4=NZB_ID=""
$5=CATEGORY="movies"
$6=GROUP="alt.binaries.tardis"
$7=STATUS="0"
This parameter gives you the option to just rename/tag the file and skip the transcode process. Useful when processing media you either already have in the desired format, or don't care.
$8=tag
$1=DIR, $5=CATEGORY
Param $1 we invoke pwd to pass the current directory into the script.
Param $5 = tv
The rest of the params = x
cd /media/TV/Show Name/Season 01
~/.sabnzbd/scripts/tardisIVR/tardisIVRvideo.sh "`pwd`" x x x tv x x
$1 $2 $3 $4 $5 $6 $7
$1=DIR, $5=CATEGORY, $8="tag"
cd /media/TV/Show Name/Season 01
~/.sabnzbd/scripts/tardisIVR/tardisIVRvideo.sh "`pwd`" x x x tv x x tag
cd /media/Movies/Movie Name (2013)
~/.sabnzbd/scripts/tardisIVR/tardisIVRvideo.sh "`pwd`" x x x movies x x
cd /media/TV/Show Name
for i in * ; do cd "`pwd`" && ~/.sabnzbd/scripts/tardisIVR/tardisIVRvideo.sh "$i" x x x tv x x tag ; done
find . -name '*.rar' -execdir unrar e {} \;