Superb quality and spec AB-Com PULSe 4K SE. Crazy offer! Only £99! FREE UK DELIVERY! 4K UHD, Enigma 2, Multiboot 4 images & more!...
Superb quality and spec AB-Com PULSe 4K Rev II Twin Satellite tuner only £149! FREE UK DELIVERY! 4K UHD, Enigma 2, SATA HDD facility, Multiboot 4 images & more!...

[ABM-MISC] Cable and FTA Sky UK CustomMix

Hi Huevos could this be modified for Virgin UK regional changes, some regions now have BBC1 on 101 or 108 same for BBC2 HD HD 102 162 im not sure if ITV is the same.

I was thinking

Code:
found_bbc1 = False
found_bbc2 = False
found_itv = False
found_c4 = False
if "cable_uk_virgin"" in services:
	for service in range(101, 201)
		if service in services["cable_uk_virgin"]["video"] and services["cable_uk_virgin"]["video"][service]["service_type"] in DvbScanner.HD_ALLOWED_TYPES:
			if services["cable_uk_virgin"]["video"][service]["service_name"].lower().startswith('bbc one'):
				target_bbc1 = 108

Or can I use conditional inserts like conditional swaps?
Hi, sorry I missed this. What are you trying to do?
 
Virgin BBC and itv channels had a re shuffle. Some regions have the hd versions on 101 to 103 if there's a local HD version. For me bbc1 HD is on 108 sd 101 BBC 2 HD on 102 with no SD version, ITV SD on 103 HD version 113. Some regions are different.


I've had reports the issue is the same for channel 4
 
Yes but what are you trying to do? What do you want moved where?
 
I'm wanting to move sat FTA HD into where the cable HD versions are. So if a region has cable BBC2 HD on 102 it will replace with the sat version same if it's on 108.
 
Something like this (not tested):
Code:
source = "sat_282_sky_uk"
dest = "cable_uk_virgin"

move_dict = {
	'bbc one': {"source": None, "dest": None}, 
	'bbc two': {"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"]]
 
Thanks I'll test later tonight and give feedback.
 
Something like this (not tested):
Code:
source = "sat_282_sky_uk"
dest = "cable_uk_virgin"

move_dict = {
	'bbc one': {"source": None, "dest": None}, 
	'bbc two': {"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"]]


It worked for BBC 1HD but not BBC 2HD so I tried adding itv1 and channel 4

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):
			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"]]

This added BBC1 HD and Channel 4HD but still didn't add BBC2 HD or ITV HD
 
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

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"]]

This adds all apart from ITV HD but im not sure if this is because of various regional names.
 
Last edited:
Are the names the same on VM and sat? Post the exact names on both.
 
After step one is complete print the dict to see what it contains.
 
Code:
print move_dict
Just put that between the 2 steps and it will save the output in the debug log.
 
Code:
print move_dict
Just put that between the 2 steps and it will save the output in the debug log.

Hopefully this is what you need

[STRIKE]
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}}
[/STRIKE]

Sorry I just realised I was editing the custommix here is the output for itv

Code:
<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}}

So looking at the code its adding to 179 althogh ITV HD for cable is on 113
 
Last edited:
'itv': {'dest': 179, 'source': 803}

What channel is at 179? Is 803 correct?
 
'itv': {'dest': 179, 'source': 803}

What channel is at 179? Is 803 correct?

803 for sat is correct. With the code it adds ITV Yorkshire HD to 179 but it is normally ITVBe HD on 179
 
The idea is this file works for all regions. Are you changing it somehow for different regions?
 
The idea is this file works for all regions. Are you changing it somehow for different regions?

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:
See first 4 channels here
Code:
https://www.tvchannellists.com/List_of_channels_on_Virgin_Media_(UK)

101 (Scot, Wales, NI) BBC One HD 108 (Eng)

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:

OpenViX Feeds Status

Back
Top