And, since I have meant to do this, for, uh, about three years, this motivated me to whip up this here bash script (please, no comments on the script I know it's fugly)
Code:
#!/bin/bash
# how many days back in time to look for "new" files
time=5
# the root of your video library where new shows arrive
vidroot=/home/videos/WebTV/
#username for opensubtitles
osuser=changeme
#and password
ospass=changeme
find $vidroot -name \*.avi -type f -mtime -$time | while read file; do
sub=${file%%????}".srt";
if [ -f "$sub" ];
then
echo here;
else
#change -l eng to be your desired language, english is mine
subdownloader -c -los --rename-subs -u $osuser -p $ospass -l eng -V "$file"
fi;
done
Toss that puppy in a cron job running at 5am or something, and every day it will check (rechecking 5 days back for old subs) the recently added videos in your library for subtitles. Clearly, you could work on this some more (for example it only looks for avi files), but it would get the job done if you, say, automatically downloaded television shows using vuze.
Bookmarks