Skip to content

Commit

Permalink
[EXAMPLE.xml] add service id and channel id
Browse files Browse the repository at this point in the history
  • Loading branch information
Huevos committed Jul 19, 2023
1 parent 30c040b commit 53435d1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion AutoBouquetsMaker/src/scanner/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,13 @@ def customLCN(self, services, section_identifier, current_bouquet_key):
servicename = unicode(services[type][number]["service_name"], errors='ignore')
else:
servicename = six.ensure_text(services[type][number]["service_name"], encoding='utf-8', errors='ignore')
xml_out_list.append("\t\t<configuration lcn=\"%d\" channelnumber=\"%d\" description=\"%s\"></configuration>\n" % (
service_id = services[type][number]["service_id"]
channel_id = ("channelid=\"%d\" " % services[type][number]["channel_id"]) if "channel_id" in services[type][number] else ""
xml_out_list.append("\t\t<configuration lcn=\"%d\" channelnumber=\"%d\" serviceid=\"%d\" %sdescription=\"%s\"></configuration>\n" % (
number,
number,
service_id,
channel_id,
servicename.replace("&", "+")
))
xml_out_list.append("\t</lcnlist>\n</custom>\n")
Expand Down

0 comments on commit 53435d1

Please sign in to comment.