[mythtv-users] Problems with imdb.pl

David Campbell dave at cpfc.org
Sat Mar 24 16:08:11 UTC 2007


Tamir Alush wrote:
> Another problem I have is that I'm trying to find a way to run the IMDB 
> script on my whole database automatically
> instead of a title-by-title method. Is there a solution for this?

something like this- untested

#!/bin/bash
#
# path to movies
MOVIEDIR="/movies"

cd $MOVIEDIR
for movie in `find . -name \*.avi | cut -d / -f 2 | sed -e 's/.avi//g'`
do
/usr/share/mythtv/mythvideo/scripts/imdb.pl -M $movie
done


Dave





More information about the mythtv-users mailing list