[mythtv-users] mythvideo, imdb and ignored words

George Nassas gnassas at mac.com
Sun Jun 25 11:33:30 UTC 2006


On 25-Jun-06, at 6:39 AM, come se fosse antani wrote:

> Hola.
> I've some issues with the imdb.pl grabber for mythtv.
>
> I would to know if it's possibile to exclude some words/chars of the
> video filename from the search query of imdb.pl.
>
> For me is very useful in order to avoid searching for:
> - 'dvdrip' or 'cdN'
> - italian translation of the movie's title
>
> Normally I rename my movie files in such way:
>
> The_Untouchables.Gli_Intoccabili.avi
>
> I would like to tell imdb.pl to ignore anything after a dot (.).
>
> any suggestion?

Look in the script for "sub getMovieList" and add some code after the  
"query =" assignment. Duplicating the first "if rindex" block will  
remove the Italian translation if it's present. To get rid of  
embedded text like dvdrip or cdNN you could add lines like:

	$query =~ s/dvdrip//;
	$query =~ s/cd[[:digit:]]+//;

- George



More information about the mythtv-users mailing list