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

Something like this at the end of your hacks section should create an HD section as the first bouquet. Order would be identical to your current list.

Code:
current_first_section = sorted(sections.keys())[0] # get the current first section number
start_HD_bouquet_at = 1 # where we are going to place our new HD section (i.e. the first bouquet)
if start_HD_bouquet_at < current_first_section: # Only add this section if there is space
	sections[start_HD_bouquet_at] = "HD Channels" # name the HD section
	current_slot = start_HD_bouquet_at # remember the next available slot
	for lcn in sorted(customised["video"].keys()): # iterate through occupied slots
		if not (current_slot < current_first_section): # if there are no more slots in the HD section
			break
		if customised["video"][lcn]["service_type"] in DvbScanner.HD_ALLOWED_TYPES: # if this channel is HD
			customised["video"][current_slot] = customised["video"][lcn]
			current_slot += 1
 
Last edited:
Excellent work again Huevos. Works exactly as you said.

thanks
 
Huevos is that code written just to have the bouquet placed at the top, or could i edit this to make the bouquet be placed at the bottom?
 
Huevos is that code written just to have the bouquet placed at the top, or could i edit this to make the bouquet be placed at the bottom?
No, but the code to do that is simpler.

Code:
if customised["video"]: # check not zero length
	LCN_list = sorted(customised["video"].keys()) # get LCNs sorted low to high
	next_slot = LCN_list[-1]+1 # get last LCN +1
	sections[next_slot] = "HD Channels" # create HD section and name it
	for lcn in LCN_list: # run through LCNs in order
		if customised["video"][lcn]["service_type"] in DvbScanner.HD_ALLOWED_TYPES:: # if this channel is HD
			customised["video"][next_slot] = customised["video"][lcn] # add to HD section
			next_slot += 1 # bump slot
 
Remove one of the : in HD_ALLOWED_TYPES:: #
 
Thanks dsayers, that worked.

Thanks Huevos for all the coding and help you provided me. I think i'm finally happy with my mixfile.... for just now haha :-)
 
Huevos, i'm having a few problems with my mix file. I changed the channels i put above 101 to numbers 1-8 instead of 93-100. But ever since then, when i fetch the file with the yellow button in dsayers mix plugin and run ABM it works fine. But then try scanning ABM again with blue button and 2 and the receiver crashes.
View attachment Enigma2_crash_2017-09-22_13-37-26.log

thanks
 
Huevos, i'm having a few problems with my mix file. I changed the channels i put above 101 to numbers 1-8 instead of 93-100. But ever since then, when i fetch the file with the yellow button in dsayers mix plugin and run ABM it works fine. But then try scanning ABM again with blue button and 2 and the receiver crashes.
View attachment 55006

thanks

It looks like an error with the delete sections under the ITV hack KeyError: 1096.
 
Last edited:
I'll have a look later. Please post your xml file here. Also HD bouquet needs tweaking. HD bouquets start at channel x001. i.e. round UP to nearest thousand +1.
 
On a side note, would it be possible to also tweak the ITV regions bouquet. Currently if you set ABM to scan any HD area, the ITV bouquet also includes the area it's set to. So for example ABM scan London HD, places ITV London hd,sd, +1 in the normal channel list, and then places them into the ITV bouquet too. I'm just trying to get rid of the duplication of channels. If this is too big an ask then just ignore it :)

thanks
 
"del sections[1096]", What is that doing there?

Also in your file your markup is in a mess. You have <instructions> as a child of <hacks>.
 
Last edited:
Should be:
Code:
<hacks>
.....
</hacks>
<instructions>
.....
</instructions>
Not:
Code:
<hacks>
.....
<instructions>
.....
</instructions>
</hacks>
 
The delete section is to delete not indexed channels whist using the ITV sections hack my method worked here http://www.world-of-satellite.com/s...ith-Sly-UK-Sat&p=457601&viewfull=1#post457601 but he has adjusted to add stv 2 but it should have only jumped one number.
You're making a mistake using the section number. Section numbers change especially if you are coding dynamically. Use the section name. Example of code here: http://www.world-of-satellite.com/s...Hacks-Examples&p=458023&viewfull=1#post458023

Code:
try:
	del sections[FavTools().getSectionNumber(sections, "Not indexed")] # needs class available
except:
	pass
 

OpenViX Feeds Status

Back
Top