<hacks>
<=!=[=C=D=A=T=A=[
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"]
SS_ROI_ID = [1309, 1308, 1323, 1324, 1312]
for service in sorted(customised["video"].keys()):
if "channel_id" in customised["video"][service] and customised["video"][service]["channel_id"] in SS_ROI_ID:
ID_index = SS_ROI_ID.index(customised["video"][service]["channel_id"])
customised["video"][service]["interactive_name"] = "%d Sky Sports %d Eire" % (ID_index + 495, ID_index + 1)
customised["video"][495 + ID_index] = customised["video"][service]
del customised["video"][service]
]=]=>
</hacks>