[mythtv] [PATCH/APP] Program rankings

Bruce Markey bjm at lvcm.com
Sat Jun 28 15:08:44 EDT 2003


Jason Rosson wrote:
> Here's a patch plus a tarball of additional files needed to
> use ranking to do conflict resolution.  It can be set to run
> before or after the existing conflict resolution or not at
> all.  There are three levels of rankings: program, channel and
> recording type.  All three add up to the final rank value and
> are used in mythbackend/scheduler.cpp between two programs that
> conflict.
> 
> The program ranking is done under Schedule Recordings and the
> other two are under Setup/TV Settings/Rankings.  I've been using
> it for a few days and haven't had any problems (or conflicts)
> and just synced it with the current CVS.
> 
> Here's some screenshots:
> 
> http://etiam.darktech.org/mythtv/images/channelrankings.jpg
> http://etiam.darktech.org/mythtv/images/generalrankingsettings.jpg
> http://etiam.darktech.org/mythtv/images/programrankings.jpg
> 
> You get can the patch and tarball here:
> 
> http://etiam.darktech.org/mythtv/rankings.patch
> http://etiam.darktech.org/mythtv/rankings.tgz
> 
> Hope it's usefull.

Well, this is just spectacular.

Having used a system that accomplishes rankings by using
a sorted list, I've always assumed that that a sorted list
was the best possible solution. However, looking at what
you've done has my head spinning over the possibilities.
I would have copied prior art but this is much more unique
and flexible but is still easy to use. This solves the all
the ranking issues that I'd be concerned about and addresses
things I hadn't even imagined.

I'll spend the weekend testing this. I'd really like to see
this go in. For anyone else testing this, a couple lesson
learned. There are ui.xml changes so you'll want to use the
distributed themes ("blue"). It took me a few minutes to
figure out that the right and left arrow keys change are
used to change the rank values.


Here are a few suggestions (*not* criticisms ;-) that might
make this even more useful:

On the "Program Rankings" screen, might it make sense add a
column for final ranking and another numbered option (3) for
sorting by the final rank? Ultimately, what I want to know is
who will win in conflict resolution.

Could you add "i" to go to the InfoDailog from the "Program
Rankings" page? It would be useful to be able to delete or
change record type directly from this page. A shortcoming in
the GUI right now is that there had not been access to all
the rows of the 'record' table so you couldn't modify things
that don't have an upcoming showing. It appears that this
page could resolve this because all the titles are listed.

This isn't a necessity but it might be nice to see the final
ranking values for each item on the Fix Conflicts page.

A spinbox for rank on the "Advanced Recording Options" page
would be useful.

Minor nit =), on the "Program Rankings" I get "Recording Ty..."
in place of "Recording Type:". Maybe a little more space or
shorten it to "Record Type:".

Outstanding work, Jason!

--  bjm





More information about the mythtv-dev mailing list