[mythtv] patch for mythVideo to use already scanned coverfile

Mark Edwards irish at irishmark.co.uk
Tue Jul 15 09:05:08 EDT 2003


> On Monday 14 July 2003 06:59 pm, Dave Alden wrote:
> > Hi,
> >   I decided to scan all of my DVD covers (I wasn't happy with using the
> > posters from imdb -- many of my movies didn't have any posters).  Rather
> > than having to modify the sql database each time I enter a new movie, I
> > decided to modify mythVideo so it checks a directory to see if there
> > already exists a "<movie name>.jpg" for the specified "<movie
name>.avi".
> > I'm not a c++ programmer (I an old C programmer :-), nor do I know QT,
> > so this patch may not be the cleanest.  This is also my first time
creating
> > a diff using cvs -- let me know if I did it wrong.  :-)
>
> Would it be better to just look for <name>.[image extension] in the same
> directory as the movie itself?  Also, probably not best to just assume
> everything's going to have a 3 character extension when generating the
cover
> name.
>
> Isaac

Or it could pick any image file in the same directory as the movie, I guess
it depends how
you store your movies, but mine are all in their own directories, they often
come with cover.jpg
or sometimes front-cover.gif/back-cover.gif etc

Mark



More information about the mythtv-dev mailing list