using the hack that you provided to lincsat in the other thread adds it as Sky Sports 5 IE at the bottom of the sports bouquet but its the same it doesnt display the channel number
sky sports IE.jpg
this is what i have
Code:
<hacks>
<![CDATA[
for number in customised["video"].keys():
customised["video"][number]["number"] = number
# swap channel numbers. Only swaps number. Channel swap is still done in bouquetwriter.py
if providerConfig.isSwapChannels() and "swapchannels" in providers[section_identifier] and len(providers[section_identifier]["swapchannels"]) > 0 and "preferred_order" in providers[section_identifier]["swapchannels"][0]:
for swaprule in providers[section_identifier]["swapchannels"][0]["preferred_order"]:
if swaprule[0] in services[section_identifier]["video"] and swaprule[1] in services[section_identifier]["video"] and services[section_identifier]["video"][swaprule[1]]["service_type"] >= 17:
customised["video"][swaprule[0]]["number"] = swaprule[1]
customised["video"][swaprule[1]]["number"] = swaprule[0]
for service in sorted(customised["video"].keys()):
if service in range(1,1000):
if "interactive_name" in customised["video"][service]:
customised["video"][service]["interactive_name"] = str(customised["video"][service]["number"]) + " " + customised["video"][service]["interactive_name"]
else:
customised["video"][service]["interactive_name"] = str(customised["video"][service]["number"]) + " " + customised["video"][service]["service_name"]
rename = {
# ITV regions
3527: "STV Edinburgh",
5070: "STV Glasgow",
6210: "STV North (Grampian)",
6220: "STV Scottish West",
6325: "STV North (Dundee)",
# Sky Sports Ireland
1312: "Sky Sports 5 IE",
1097: "Sky Sports 5 IE",
}
channels_to_add_by_id = {
1251: 286, # RTE One
2808: 287, # RTE One+1
1252: 288, # RTE2
1255: 290, # TV3
1025: 291, # TV3+1
1253: 292, # TG4
3615: 293, # 3e
1257: 296, # Oireachtas TV
2804: 295, # RTE News Now
1256: 294, # RTEjr
5315: 993, # "Made In Bristol"
5537: 994, # "Made In Leeds"
5536: 995, # "Made In Cardiff"
5043: 996, # "Made In Tn&Wr"
5421: 997, # "Notts TV"
5090: 990, # "London Live"
5070: 991, # "STV Glasgow"
3527: 992, # "STV Edinburgh"
1097: 499, # "Sky Sports 5 IE"
}
# Channel renames
for service in sorted(customised["video"].keys()):
if "channel_id" in customised["video"][service] and customised["video"][service]["channel_id"] in rename:
customised["video"][service]["interactive_name"] = rename[customised["video"][service]["channel_id"]]
# Add channels by ID
for service in sorted(customised["video"].keys()):
if "channel_id" in customised["video"][service] and customised["video"][service]["channel_id"] in channels_to_add_by_id:
customised["video"][channels_to_add_by_id[customised["video"][service]["channel_id"]]] = customised["video"][service]
del customised["video"][service]
]]>
</hacks>