[mythtv] patch for mythVideo to use already scanned coverfile

Mark Musone mmusone at shatterit.com
Wed Jul 16 11:13:27 EDT 2003


Instead of trying to muck around with the database, why not just modify
the code to simply override the database image if an image file of the
name <moviefilename>.gif
(or .jpg, png..etc..)

that should only be one or two lines of code, and doing a stat on a
single filename isn’t a serious performance issue.

Then you'll just have really one thing in the database, a setting for
"VideoCoverOverride" which points to a pathname..

If people don’t have any overrides, then take out the setting, so there
will not be _any_ performance issues

In summary, I'd propose:

1. Add a setting VideoCoverOverride which contains a path name for
mythvideo to look for cover files of the name <videoname>.gif (or
whatever...)

2. Change the code slightly to do:
	if(VideoCoverOverride)
	{
	if(stat(VideoName.gif))
		{
		LoadCoverFile(VideoName.gif)
		}
	}

-Mark



-----Original Message-----
From: mythtv-dev-bounces at snowman.net
[mailto:mythtv-dev-bounces at snowman.net] On Behalf Of Jim Paris
Sent: Wednesday, July 16, 2003 9:59 AM
To: Development of mythtv
Subject: Re: [mythtv] patch for mythVideo to use already scanned
coverfile

> Yup -- that also makes it nicer for those using NFS to export their
movie
> directory.  Any recommendations on what "[.image extension]" should
be?

mpg,mpeg,wma,avi,asf,vob,bin,vcd,ps,pes,fli,viv,rm,ram,yuv,mov,wmv,ogm,m
p4,nuv

-jim
_______________________________________________
mythtv-dev mailing list
mythtv-dev at snowman.net
http://lists.snowman.net/cgi-bin/mailman/listinfo/mythtv-dev

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.500 / Virus Database: 298 - Release Date: 7/10/2003
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.500 / Virus Database: 298 - Release Date: 7/10/2003
 




More information about the mythtv-dev mailing list