Code: Select all
#if [ $VIDEO_ID -lt $AUDIO_ID ]; then
#VIDEO_FPS=`grep "Frame rate" ${MKV_INFO} | sed -n 1p | cut -d'(' -f2 | cut -d' ' -f1`
#else
VIDEO_FPS=`grep "Frame rate" ${MKV_INFO} | sed -n 2p | cut -d'(' -f2 | cut -d' ' -f1`
#fi
Code: Select all
#if [ $VIDEO_ID -lt $AUDIO_ID ]; then
#VIDEO_FPS=`grep "Frame rate" ${MKV_INFO} | sed -n 1p | cut -d'(' -f2 | cut -d' ' -f1`
#else
VIDEO_FPS=`grep "Frame rate" ${MKV_INFO} | sed -n 2p | cut -d'(' -f2 | cut -d' ' -f1`
#fi
Code: Select all
python /path/to/MEDIA/PROCESSING/+/XBMC/UPDATER/script
Code: Select all
DEST="/path/to/move/files"
USHARE="hostname:port" ##uncomment this below if you run uShare.
for videos in *.avi *.mkv *.m2ts; do
ext=${videos##*.}
myFile="$videos"
if [[ "$myFile" =~ ([A-Za-z0-9\.]*)\.(S..E..).* ]] ; then
File=${BASH_REMATCH[2]}.$ext
PreShowName=${BASH_REMATCH[1]}
ShowName=$(echo $PreShowName | sed 's/\./ /g')
echo "A new episode of $ShowName is ready for your enjoyment!"
[ -d "$DEST/$ShowName" ] || mkdir -pv "$DEST/$ShowName"
mv -v $myFile "$DEST/$ShowName/$File"
#wget http://$USHARE/web/ushare.cgi?action=refresh -o /dev/null -P /dev/null
else
echo "$myFile does not match our TV shows"
mv -v "$myFile" /$myFile
fi
done
exit 0
Code: Select all
wget http://www.xs4all.nl/~carlo17/which/which-2.20.tar.gz
tar -xf which-2.20.tar.gz
cd which-2.20
./configure
make
make install
Code: Select all
wget http://www.xs4all.nl/~carlo17/which/which-2.20.tar.gz
tar -xf which-2.20.tar.gz
cd which-2.20
./configure
make
make install