Skip to content

Shell Usage

scrathe edited this page Feb 15, 2018 · 8 revisions

Intro

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"
tardisIVRvideo.sh adds an 8th argument

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

Example Shell Usage

$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
TV tag only
$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
Movie encode and tag
cd /media/Movies/Movie Name (2013)
~/.sabnzbd/scripts/tardisIVR/tardisIVRvideo.sh "`pwd`" x x x movies x x
TV recurse thru Season XX directories and tag
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
Unrar Recursively
find . -name '*.rar' -execdir unrar e {} \;

Clone this wiki locally