[mythtv] [PATCH] abstract IMDB queries into external scripts

MaxPower maxpower44 at tiscali.fr
Thu Feb 5 05:18:42 EST 2004


Tim Harvey wrote:

>Hopefully this patch will get applied before the next version.  It's
>dependent on me wringing out all the bugs and submitting something that
>can easily be patched and verified working by one of the persons with
>CVS access.  Currently I'm waiting on feedback from Isaac regarding the
>problem he had with it (Isaac, can you run mythfrontend -v and also add
>a '-d' param to your script cmdlines and send me the output?).
>
>I already know of a few problems that need fixing.  Apparently I left
>some script paths hard coded instead of using the PREFIX def.  Also
>there is an undesirable effect if you keep selecting a list entry
>without letting it finish looking up your first selection.
>  
>
This bug already exist without your patch

>Your idea will be easy for me to implement... in fact, I meant to all
>along, but forgot to tie this in.  I need to add a cmdline option to
>imdb.pl that takes the country. 
>
You  don't need to add cmdline for countries and genres.
For  -D option, my script produce  this kind of information.
Title:master and commander : de l'autre côté du monde (master and 
commander : the far side of the world)
Year:2002
Director:peter weir
Plot:en 1805, le capitaine jack aubrey est une des figures les plus 
brillantes de la marine royale britannique. son courage, sa ténacité, 
son sens tactique lui ont valu le respect et l'admiration des officiers 
et matelots du vaisseau de guerre surprise. fidèle compagnon de ces 
aventures, le docteur stephen maturin est son exact opposé. chirurgien, 
chercheur et naturaliste passionné, son amour de la musique est son seul 
point commun avec aubrey. ces deux  hommes, si contrastés, n'en ont pas 
moins forgé de solides liens d'amitié. attaqué par le navire français 
achéron, le surprise est gravement endommagé et perd une bonne partie de 
son équipage. sourd aux conseils de prudence du chirurgien, jack se 
lance à la poursuite de l'ennemi. du brésil aux galâpagos, en passant 
par les eaux traîtresses du cap horn, sa quête tourne bientôt à 
l'obsession...
UserRating:6
MovieRating:
Runtime:134
Writers:
Cast: russell crowe, paul bettany, billy boyd, james d'arcy, lee  ingleby 
Genres:historique, aventure
Countries:américain
As you can see I just add two lines, one for genres and the other one 
for countries. It's just a coma sepated list like the stars. My accessor 
in the matadata class (setGenres and setCountries) take a coma separated 
lists parameter.
Then if you can just add these two lines in your script, it's help me.

> I suppose it would be best if this
>could be ultimately a setting in the database in case anything else
>needs it, but until then it will just be something that non US users can
>put in their movie lookup script commandline manually.
>
>  
>
I don't understand what you mean ...

Xavier Hervy

>Tim
>  
>





More information about the mythtv-dev mailing list