[mythtv-commits] Ticket #12330: channel scan ignores subsequent channels with same generated callsign
MythTV
noreply at mythtv.org
Thu Dec 4 10:14:16 UTC 2014
#12330: channel scan ignores subsequent channels with same generated callsign
--------------------------------------+-------------------------
Reporter: mythtv@… | Owner:
Type: Bug Report - General | Status: new
Priority: minor | Milestone: unknown
Component: MythTV - DVB | Version: Unspecified
Severity: medium | Keywords:
Ticket locked: 0 |
--------------------------------------+-------------------------
In the UK on Freesat DVB-S there are channels which have different service
IDs but the same name (what the code calls serviceShortName). The logic in
in libs/libmythtv/channelscan/channelscan_sm.cpp sets the callsign, which
mythtv requires to be unique, to the serviceShortName, therefore further
channels with the same name are ignored and not picked up in the scan.
The attached patch demonstrates this by changing the callsign to be the
catenation of the serviceShortName with service id.
Eg on transport 2047 there are two channels called "BBC ALBA"
MariaDB [mythconverg]> select
transportid,frequency,polarity,symbolrate,mplexid from dtv_multiplex
where transportid=2047;
+-------------+-----------+----------+------------+---------+
| transportid | frequency | polarity | symbolrate | mplexid |
+-------------+-----------+----------+------------+---------+
| 2047 | 10802750 | h | 22000000 | 973 |
+-------------+-----------+----------+------------+---------+
Before:
MariaDB [mythconverg]> select callsign,serviceid,mplexid from channel
where mplexid=973;
+----------------+-----------+---------+
| callsign | serviceid | mplexid |
+----------------+-----------+---------+
| ETV2 | 6407 | 973 |
| BBC One Scot | 6421 | 973 |
| BBC Two Scot | 6422 | 973 |
| BBC ALBA | 6423 | 973 |
| BBC One N West | 6441 | 973 |
| BBC One Yorks | 6451 | 973 |
| BBC One S East | 6461 | 973 |
| BBC One NE&C | 6471 | 973 |
+----------------+-----------+---------+
8 rows in set (0.00 sec)
After:
MariaDB [mythconverg]> select callsign,serviceid,mplexid from channel
where mplexid=973;
+---------------------+-----------+---------+
| callsign | serviceid | mplexid |
+---------------------+-----------+---------+
| ETV2-6407 | 6407 | 973 |
| BBC One Scot-6421 | 6421 | 973 |
| BBC Two Scot-6422 | 6422 | 973 |
| BBC ALBA-6423 | 6423 | 973 |
| BBC ALBA-6424 | 6424 | 973 |
| BBC One N West-6441 | 6441 | 973 |
| BBC One Yorks-6451 | 6451 | 973 |
| BBC One S East-6461 | 6461 | 973 |
| BBC One NE&C-6471 | 6471 | 973 |
+---------------------+-----------+---------+
9 rows in set (0.00 sec)
I'm not suggesting this patch be merged, just providing it so as to
explain what the problem is.
This is an issue for me becasue the tables which map bouquets and regions
to logical channel numbers often seem to reference serviceids which mythtv
doesn't have in the channels table because they are the 2nd or subsequent
occurances
of serviceShortName the scanner has encountered.
thanks,
James.
--
Ticket URL: <https://code.mythtv.org/trac/ticket/12330>
MythTV <http://www.mythtv.org>
MythTV Media Center
More information about the mythtv-commits
mailing list