Andrew Flegg wrote:
> On 12/30/06, Duncan Webb <[EMAIL PROTECTED]> wrote:
>> Justin Wetherell wrote:
>>> Actually, try this patch instead.
>> Have you ever done any game programming? The algorithm is the same as
>> when a sprite is touching or over an object, except in this case
>> everything is a line and there are only two points to check.
>>
>> All that is needed is a sorted list of programmes, sorted by start time
>> and a loop. You don't need any SQL queries, this is overkill.
>>
>> However, what is needed is a way to show when two or more programs
>> overlap, so an extra field in the TvProgram object is required to
>> indicate this condition. Then the TV guide, scheduled recordings,
>> favourites and the webserver need to indicate this probable with a
>> yellow/orange background. Oddly, this is the hard part.
>>
>> I've added overlap to the TvProgram object, so it can be accessed and
>> set with prog.overlap. I have already done some of this code in the
>> wakeupserver I wrote.
> 
> Isn't that conflict, rather than multiple copies of the same programme
> being recorded, though? Both are pretty important.

Oh talk about getting the wrong end of the stick, it's late and I've
been freevo'ing all day :)

Conflict is more important, because the recordserver cuts the end of the
 first one off, when it starts to record the second program.

Duplicates, are not that important, I tend to let them record in case
the first one is corrupt, quite often happens with the PVR-350, loss of
audio about twice a week.

A better way is to write a script, grepping the fxd files, and then a
sort, cut, uniq -d. This way there are no changes to freevo. An even
better way is to write a freevo helper function.

I have written quite a few of these, one to remove old bookmarks for
recording that have been deleted, one to check that the fxd files are
okay and have the video file that it says, etc.

> It'd also be nice (if we're making the background of the listings grid
> changable) to shade-out programmes in the past.

Hmm

Duncan


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to