#!/bin/bash # # Run from cron or manually to fetch any new Doctor Who episodes # from the TiVo. # mydir=`dirname $0` PATH=`$mydir/echo-path` export PATH logfile="/huge/vids/DoctorWho/.data/fetch-who.log" exec > $logfile 2>&1 get-tivo-dir | add-newlines | dig-episodes # # If nothing is being transcoded in background, then update the web page # (otherwise it gets updated when all the background jobs are done). # if [ -f "/huge/vids/DoctorWho/.data/worklist/keeper.pid" ] then : else build-web -v fi