Thanks I'll test later tonight and give feedback.
Thanks I'll test later tonight and give feedback.
It worked for BBC 1HD but not BBC 2HD so I tried adding itv1 and channel 4
This added BBC1 HD and Channel 4HD but still didn't add BBC2 HD or ITV HDCode:source = "sat_282_sky_uk" dest = "cable_uk_virgin" move_dict = { 'bbc one': {"source": None, "dest": None}, 'bbc two': {"source": None, "dest": None}, 'itv': {"source": None, "dest": None}, 'channel 4': {"source": None, "dest": None}, } if source in services and dest in services: for key in move_dict.keys(): for service in range(101, 201): if service in services[source]["video"] and \ services[source]["video"][service]["service_type"] in DvbScanner.HD_ALLOWED_TYPES and \ services[source]["video"][service]["service_name"].lower().startswith(key): move_dict[key]["source"] = service if service in services[dest]["video"] and \ services[dest]["video"][service]["service_type"] in DvbScanner.HD_ALLOWED_TYPES and \ services[dest]["video"][service]["service_name"].lower().startswith(key): move_dict[key]["dest"] = service for key in move_dict.keys(): if move_dict[key]["source"] and move_dict[key]["dest"]: customised["video"][move_dict[key]["dest"]] = services[source]["video"][move_dict[key]["source"]]
Andy_Hazza (24-06-19)
I know why it wasn't adding bbc2 and itv hd because they are in the sky uk secondary bouquet so I added for service in range(101, 201) + range(801, 900): the code now looks like
This adds all apart from ITV HD but im not sure if this is because of various regional names.Code:source = "sat_282_sky_uk" dest = "cable_uk_virgin" move_dict = { 'bbc one': {"source": None, "dest": None}, 'bbc two': {"source": None, "dest": None}, 'itv': {"source": None, "dest": None}, 'channel 4': {"source": None, "dest": None}, } if source in services and dest in services: for key in move_dict.keys(): for service in range(101, 201) + range(801, 900): if service in services[source]["video"] and \ services[source]["video"][service]["service_type"] in DvbScanner.HD_ALLOWED_TYPES and \ services[source]["video"][service]["service_name"].lower().startswith(key): move_dict[key]["source"] = service if service in services[dest]["video"] and \ services[dest]["video"][service]["service_type"] in DvbScanner.HD_ALLOWED_TYPES and \ services[dest]["video"][service]["service_name"].lower().startswith(key): move_dict[key]["dest"] = service for key in move_dict.keys(): if move_dict[key]["source"] and move_dict[key]["dest"]: customised["video"][move_dict[key]["dest"]] = services[source]["video"][move_dict[key]["source"]]
Last edited by dsayers; 23-06-19 at 22:54.
Andy_Hazza (24-06-19)
Are the names the same on VM and sat? Post the exact names on both.
Andy_Hazza (24-06-19)
After step one is complete print the dict to see what it contains.
Andy_Hazza (24-06-19)
Andy_Hazza (24-06-19)
Just put that between the 2 steps and it will save the output in the debug log.Code:print move_dict
Andy_Hazza (24-06-19)
Hopefully this is what you need
Code:<371376.241> {'bbc one': {'dest': 108, 'source': 115}, 'channel 4': {'dest': 141, 'source': 138}, 'bbc two': {'dest': 102, 'source': 802}, 'ITV Yorkshire': {'dest': None, 'source': None}}
Sorry I just realised I was editing the custommix here is the output for itv
So looking at the code its adding to 179 althogh ITV HD for cable is on 113Code:<371896.094> {'bbc one': {'dest': 108, 'source': 115}, 'itv': {'dest': 179, 'source': 803}, 'bbc two': {'dest': 102, 'source': 802}, 'channel 4': {'dest': 141, 'source': 138}}
Last edited by dsayers; 24-06-19 at 00:45.
Andy_Hazza (24-06-19)
'itv': {'dest': 179, 'source': 803}
What channel is at 179? Is 803 correct?
Andy_Hazza (24-06-19)
Andy_Hazza (24-06-19)
Where is the itv you are trying to replace?
Andy_Hazza (24-06-19)
Andy_Hazza (24-06-19)
The idea is this file works for all regions. Are you changing it somehow for different regions?
Andy_Hazza (24-06-19)
No it seems cable split regions like sat did so HD channel numbers are at different slots. Some all 1 to 3 HD others just BBC1 HD on 101 or BBC2 HD on 102. Im not sure of all the regional channel number changes maybe others can state what BBC 1 to ITV HD channel numbers are.
The alternatives are in the same postion so if BBC1 HD is on 101 I think BBC1 SD should be on 108, Im not sure if all regions have now removed BBC2 SD and just adding BBC2 HD to 102.
Im just trying to make something that will replace the cable HD version wherever the cable version is meant to be with the sat HD version
Last edited by dsayers; 24-06-19 at 01:16.
Andy_Hazza (24-06-19)
See first 4 channels here101 (Scot, Wales, NI) BBC One HD 108 (Eng)Code:https://www.tvchannellists.com/List_of_channels_on_Virgin_Media_(UK)
101 (Eng)BBC One SD [English region]
102 BBC Two HD
103 (Eng, Wales, NI)ITV or UTV sd
103 (Scot)STV HD
104 (London)Channel 4 HD 141 (UK, except London)
104 (UK, except London)Channel 4 SD
Last edited by dsayers; 24-06-19 at 14:52.