[mythtv-commits] Re: Ticket #199: multiple favorite channel groups
MythTV
mythtv at cvs.mythtv.org
Mon Oct 31 20:42:34 EST 2005
#199: multiple favorite channel groups
-------------------------+--------------------------------------------------
Reporter: xris | Owner: xris
Type: enhancement | Status: new
Priority: minor | Milestone:
Component: mythtv | Version:
Severity: medium | Resolution:
-------------------------+--------------------------------------------------
Comment (by kkuphal):
I think this can easily be accomplished from a design standpoint by adding
one table and modifying the existing favorites table.
1. favorite_group table which is simply (id, name) to allow for unlimited
groups
2. favorites table which is (userid, chanid) to map channels to a
favorite group.
We can reuse the existing userid field in the favorites table (which is
unused based on my browsing of the code) and rename it to groupid with a
simple ALTER statement.
Selecting all channels in a group is as easy as joning favorite_group,
favorites, and channel to select where favorite_group.id =
favorites.groupid and favorites.chanid = channel.chanid.
Existing code would still work until a second group is added as the
initial favorite group would simply be current the favorites table where
groupid = 0. A default entry would need to be added to the favorite_group
table on creation.
The frontend interface for setting favorites would need to be changed then
when adding support to MythWeb. I'd suggest using '?' to open a kind of
channel group editor to add/remove groups as well as toggle channels in
each group. '/' can be used then to cycle the lists. Some kind of visual
indicator would also be needed to denote the current favorite group being
displayed. The current use of '?' when watching Live TV would need to
change to change to the first channel in the next channel group while '/'
would work to cycle through channels in the existing group.
--
Ticket URL: <http://cvs.mythtv.org/trac/ticket/199>
MythTV <http://www.mythtv.org/>
MythTV
More information about the mythtv-commits
mailing list