So, it could (and should) be refactored out as an exercise for the reader
Set up to save re-encoded to episodes to “encoded” folder.
The Second FolderAction
Invoked when files appear in “encoded” folder.
Adds files to iTunes
Works out Show Name, Season Number and Episode Number (Perl)
The Perl if (/^(.*)[s.-]+s?([0-9][0-9]?)[ex]?([0-9][0-9])/i) { $show=$1; $season=$2; $episode=$3; $show=~s/s*-s*$//; // Remove dash from end of show name $show=~s/./ /g; // Convert dots to spaces $show=~s/((^w)|(sw))/U$1/g; // Capitalise each word print "$show
$season
$episode
"; } Show Season Episode
The Second FolderAction
Invoked when files appear in “encoded” folder.
Adds files to iTunes
Works out Show Name, Season Number and Episode Number (Perl)
Sets info in iTunes
iTunes
Does any syncing that you’ve told it to do with your TV Shows!
You get to watch the shows you want without having to be around when they’re on TV.
Awesome.
The Overall Process
But wait, there’s more!
Current Gotchas
Deletion process still to be written.
VisualHub can’t cope with videos inside folders.
VisualHub doesn’t like things to be added to its “to encode” list - shows get encoded twice.
Write-up / Instructions
Full instructions for setting up your own “TV Tubes” process will be available at workingwith .me. uk very soon.
0 comments
Post a comment