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] Custom Mix - Irish VM Cable with Sly UK Sat

Don't touch the provider file. You can do everything in the mix file.

Something like this (not tested)...
Code:
del sections[1050]
for number in customised["video"].keys()
	if number > 1082:
		del customised["video"][number]

Also why have you got your ITVs in that weird order?
 
Yeah i would prefer not to touch the provider file, that was the only way i could mange to make it work myself. Would i just add these lines into the hack section?

for the weird order i just went north to south, hd first, +1 and the SD last. No particular reason lol
 
Hi i added these lines to the bottom of my mix. I got a crash. Here is a crash log.
View attachment Enigma2_crash_2017-09-16_16-37-38.log

Also i included my custom mix i'm working with. I removed lines 254-400 in my mix where i was deleting the not-indexing channels and removed line 223 where i was creating a bouquet for ITV regions.
View attachment sat_282_sky_uk_CustomMix.xml

I also tried this hack like this with a '#' infront similar to lines above this. But same outcome... crash

#del sections[1050]
for number in customised["video"].keys()
if number > 1082:
del customised["video"][number]
 
Last edited:
Code:
del sections[1050]
for number in customised["video"].keys():
	if number > 1082:
		del customised["video"][number]
 
Thank you very much Huevos, that worked a treat. As for the order of the ITV channels would it make more sense to have them the same way they are added on the uk provider file?

On a side note, would you have any idea why the channels i add above 101 don't appear in the HD bouquet?
here in this photo you will see the 6 HD channels i add above channel 101 in a bouquet called Irish channels
1_0_19_8FD_49_601_FFFF0000_0_0_0.webp

But when you look in the HD bouquet, none of these channels added above 101 are in here, but the ones below this 101 are inside the bouquet.
strange thing is a channel i didn't add into the Irish bouquet is in there.
1_0_19_8FD_49_601_FFFF0000_0_0_0 (1).webp

thanks
 
I disabled any swap through the ABM menu, re-scanned Same results as the photo above. Should i delete the swap lines off the actual custom mix file?
 
Last edited:
Jawz I have just been playing with Huevos code if you want to delete all none indext channels and have ITV Regions you can tweak the delete sections hack and use ITV Regions hack I have just done it with this

Code:
# Add ITV regions Bouquet		
ITVs = []
ITVsPlusOne = []
rest = []
last_section = max(sections.keys())
last_section_name = sections[last_section]

for service in sorted(services["sat_282_sky_uk"]["video"].keys()):
	if service in range(last_section, 1450) or service in [103, 133, 178]:
		# ITV regions
		if 'interactive_name' in services["sat_282_sky_uk"]["video"][service] and (service in [103,178] or (service in range(last_section, 1450) and '+1' not in services["sat_282_sky_uk"]["video"][service]["interactive_name"] and ('ITV' in services["sat_282_sky_uk"]["video"][service]["interactive_name"] or 'STV' in services["sat_282_sky_uk"]["video"][service]["interactive_name"] or 'UTV' in services["sat_282_sky_uk"]["video"][service]["interactive_name"]))):
			ITVs.append(services["sat_282_sky_uk"]["video"][service])
			
		# ITV +1 regions
		elif 'interactive_name' in services["sat_282_sky_uk"]["video"][service] and (service in [133] or (service in range(last_section, 1450) and '+1' in services["sat_282_sky_uk"]["video"][service]["interactive_name"] and ('ITV' in services["sat_282_sky_uk"]["video"][service]["interactive_name"] or 'STV' in services["sat_282_sky_uk"]["video"][service]["interactive_name"] or 'UTV' in services["sat_282_sky_uk"]["video"][service]["interactive_name"]))):
			ITVsPlusOne.append(services["sat_282_sky_uk"]["video"][service])
		
		else:
			rest.append(services["sat_282_sky_uk"]["video"][service])

i = last_section
sections[i] = "ITV Regions"

sort_list = []
for x in ITVs:
	sort_list.append((x, re.sub('^(?![a-z])', 'zzzzz', x['interactive_name'].lower())))
sort_list = sorted(sort_list, key=lambda listItem: listItem[1])
for service in sort_list:
	customised["video"][i] = service[0]
	i += 1
			
sort_list = []
for x in ITVsPlusOne:
	sort_list.append((x, re.sub('^(?![a-z])', 'zzzzz', x['interactive_name'].lower())))
sort_list = sorted(sort_list, key=lambda listItem: listItem[1])
for service in sort_list:
	customised["video"][i] = service[0]
	i += 1
		
sections[i] = last_section_name	
sort_list = []
for x in rest:
	sort_list.append((x, re.sub('^(?![a-z])', 'zzzzz', x['service_name'].lower())))
sort_list = sorted(sort_list, key=lambda listItem: listItem[1])
for service in sort_list:
	customised["video"][i] = service[0]
	i += 1

# Delete sections	
del sections[1094]
for number in customised["video"].keys():
	if number > 1093:
		del customised["video"][number]

This delete all not indexed channels.

Im not sure if it will be the same fore you, for some reason the bouquet before (BT Sports Interactive) ends at channel number 1037 but the ITV Regions bouquet starts at 1050 maybe it needs tweaking to get the ITV Regions bouquet to start at 1040
 
Last edited:
Code:
for number in sorted(customised["video"].keys()):
	print number, customised["video"][number]
Add that at the end and post the debug log.
 
HD bouquet corresponds with channelsontop, so not a bug.
 
Ok thanks for looking into it for me.
 
Last edited:
Easiest way to cure this is switch off the HD bouquet and create your own.
 
how would you suggest i create my own hd bouquet. not sure how to instruct only hd channels to go in the bouquet.

thanks
 
Spend some time reading the code. There is a list of service types in dvbscanner.py. Try to work it out. If you can't, post your attempt. It's the only way to lesrn.
 
thanks I was reading only the provider file. will give it a go
 
You need to look in the files in the scanner folder. CustomMix xml files are read by tools.py. Ifyou don't read the surrounding code you are just trying to write code in the dark.
 
thanks for the help Huevos but i think i will need to come back to this once i learn some basic python.
 
I think it works the other way around. You want to achieve something with your code. Learning just comes along the way and is secondary.
 

OpenViX Feeds Status

Back
Top