Opened 18 years ago
Closed 18 years ago
#3654 closed defect (fixed)
MythWeb listings exclude channels with identical callsigns
Reported by: | anonymous | Owned by: | xris |
---|---|---|---|
Priority: | minor | Milestone: | unknown |
Component: | mythweb | Version: | head |
Severity: | low | Keywords: | listings |
Cc: | Ticket locked: | no |
Description
When viewing the program listings in MythWeb, only the first occurrence of a channel will appear in the listings if there is more than one channel with a particular callsign. In the unpatched screenshot, only the first occurrence of the channel with the callsign of "SPORT" is listed, despite the fact that there are other channels with program info within the given time period. The cause of this issue appears to be changeset #13136.
After looking over the code it appears that the portion of the code causing the problem is within the modules/tv/includes/channels.php file that creates the $Callsigns array and keys it off of the channel callsign, even though callsigns are not unique in the channels table. The solution is to switch the key/value so that the callsign is the value and the chanid is the key instead of the other way around.
Attached are before/after screenshots and a patch to fix it.
Attachments (3)
Change History (9)
Changed 18 years ago by
Attachment: | mythweb_patched.png added |
---|
Changed 18 years ago by
Attachment: | mythweb_unpatched.png added |
---|
Changed 18 years ago by
Attachment: | channel_list.patch added |
---|
comment:1 Changed 18 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:2 follow-up: 3 Changed 18 years ago by
But... they aren't. I have 20 channels called "SPORT" and they are not the same channel. They have different service ids, different channel ids, and different channums.
comment:3 follow-up: 5 Changed 18 years ago by
Replying to anonymous:
But... they aren't. I have 20 channels called "SPORT" and they are not the same channel. They have different service ids, different channel ids, and different channums.
If the channels are different, they *must* have different CALLSIGNS, as this is what the MythTV scheduler uses to determine which channels are 'equal' (same listings) and which are different (different listings).
chanid is the unique key for channels. Channels can have the same channum, same callsign and same name, but this should only be the case when when such channels carry the same station with the same listings.
If you configure channels with the same callsign and channum, you will only see one copy of the channel in the mythfrontend EPG and in MythWeb.
comment:4 Changed 18 years ago by
Resolution: | invalid |
---|---|
Status: | closed → reopened |
Stuart M, Nick M,
We discussed this in mythtv-dev a couple months ago. While channels with the same callsign should mostly have the same programming, they can in fact have slight differences. What this means in practice is that in the EPG we group by callsign and channum. That is if the channum and callsign are the same we list them as one channel, if either is different we list them as separate channels. This means that if you do have multiple channels with the callsign "WABC", you need to give them different channum's if you want them listed separately, but if you want to just see one of the "WABC" channels you need to give them the same channum.
Mythweb should probably implement this same grouping strategy unless there is some compelling reason not to.
comment:5 Changed 18 years ago by
Replying to Nick Morrott <knowledgejunkie@gmail.com>:
Replying to anonymous:
But... they aren't. I have 20 channels called "SPORT" and they are not the same channel. They have different service ids, different channel ids, and different channums.
If the channels are different, they *must* have different CALLSIGNS, as this is what the MythTV scheduler uses to determine which channels are 'equal' (same listings) and which are different (different listings).
chanid is the unique key for channels. Channels can have the same channum, same callsign and same name, but this should only be the case when when such channels carry the same station with the same listings.
If you configure channels with the same callsign and channum, you will only see one copy of the channel in the mythfrontend EPG and in MythWeb.
The problem is that there are some channels that use generic callsigns such as "PPV" or "SPORT" where the listings are not the same. I'm not going out of my way to name all of these channels the same with an identical callsign, it's just how the channels are setup.
Not a bug.
Callsigns are used as a unique channel identifier in mythtv.