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-DVB-C] Sky Sports channel names on cable

  • Thread starter Thread starter zino
  • Start date Start date
They are the official channel numbers.

Look at official receiver
Look at official channel list on website
Look at example file ABM produces
 
@abu baniaz Is there any way we can incorporate the delete channel data command into ABM delete bouquets but for it to only effect ABM bouquets?

Code:
nit 4 && sleep 10 && rm -f /etc/defaultsat.tar.gz && rm -f /etc/enigma2/lamedb && rm -f /etc/enigma2/*.tv && rm -f /etc/enigma2/*.radio  && rm -f /etc/enigma2/*.del &&  init 3

Also what command would we need to use to just delete ABM bouquets and lamedb file?
The following code will remove all bouquets (not just ABM but you can easily edit it file_type so it just does ABM bouquets:
Code:
		from enigma import eDVBDB
		import glob, os

		path = '/etc/enigma2'
		filecache = '/usr/lib/enigma2/python/Plugins/SystemPlugins/AutoBouquetsMaker/providers/providers.cache'

		print 'Removing ALL bouquets...'
		os.chdir(path)
		for file_type in ['*.tv', '*.radio', '*.del', '*.pkl']:
			files=glob.glob(file_type)
			for filename in files:
				if os.path.exists(filename):
					os.remove(filename)

		for files in ['lamedb', 'blacklist', 'profile']:
			if os.path.exists(files):
				os.remove(files)

		if os.path.exists(filecache):
			os.remove(filecache)

		eDVBDB.getInstance().reloadServicelist()
		eDVBDB.getInstance().reloadBouquets()
It does work but you just have to switch bouquets after you have done it before it will re-read the bouquets file and notice nothing is present anymore.
 
So is this the command just for lamedb?
Code:
path = '/etc/enigma2'

os.chdir(path)
for files in ['lamedb', 'blacklist', 'profile']:
	if os.path.exists(files):
	        os.remove(files)

We could add that to the main.py then when abm runs it deletes the lamedb as it seems that is whats causing the issues
 
Last edited:
So is this the command just for lamedb?
Code:
path = '/etc/enigma2'

os.chdir(path)
for files in ['lamedb', 'blacklist', 'profile']:
	if os.path.exists(files):
	        os.remove(files)

We could add that to the main.py then when abm runs it deletes the lamedb as it seems that is whats causing the issues
For just lamedb and nothing else the following should be sufficient:
Code:
	if os.path.exists('/etc/engima2/lamedb'):
	        os.remove('/etc/enigma2/lamedb')
Ensure you have "import os" otherwise executing "os" commands will cause a crash.

Is this issue you're referring to preventing your plugin from working correctly then you could add this to your plugin as your plugin runs before ABM does it's scan. Obviously, ensure your plugin only runs a min before ABM because i'm not sure what will happen if recording or watching something at time your plugin runs this code. It may not do much because the file is likely cached in memory anyhow but you would have to test this.
 
Last edited:
For just lamedb and nothing else the following should be sufficient:
Code:
	if os.path.exists('/etc/engima2/lamedb'):
	        os.remove('/etc/enigma2/lamedb')
Ensure you have "import os" otherwise executing "os" commands will cause a crash.

Is this issue you're referring to preventing your plugin from working correctly you could add this to your plugin as your plugin runs before ABM does it's scan. Obviously ensure your plugin only runs a min before ABM because i'm not sure what will happen if recording or watching something at time your plugin runs this code. It may not do much because the file is likely cached in memory anyhow but you would have to test this.

No its not an issue with my custommix or plugin its for Cable HD channel renames it doesn't seem to rename them until the above delete script is ran or an automatic scan is ran then run abm or Abu,s method here http://www.world-of-satellite.com/s...ing-0-Channels&p=454260&viewfull=1#post454260.

Lincsat asked if we could have the lamedb file deleted on every ABM scan so I was just thinking of the easiest way to achieve it
 
They are the official channel numbers.

Look at official receiver
Look at official channel list on website
Look at example file ABM produces

I did, that's why I asked as the official numbers on virgin website didnt correllate to the examples I saw on renaming cable channels. Maybe I found old examples I dont know.


Appreciate this link!
As an example to test, I tried renaming Channel 5HD to Channel 5 HD using the following, but it didn't work.

I added this at the bottom of my custom mix file:

<hacks>
<![CDATA[

rename = {
105: "Channel 5 HD"
}

# Rename channels
for channel_number in sorted(customised["video"].keys()):
if channel_number in rename:
customised["video"][channel_number]["interactive_name"] = rename[channel_number]

]]>
</hacks>

</custommix>
 
The example given was the Irish Cable providers, it has different numbers to the UK ones.

"Channel 5HD" is on satellite, "Channel 5 HD" is on cable. Is your mix file for satellite as that is what you want to change?

If you are using HD numbering, the official number is 105. If you are using SD numbering, the official number is 171. Adapt your mix file for the numbering system you are using.
 
The example given was the Irish Cable providers, it has different numbers to the UK ones.

"Channel 5HD" is on satellite, "Channel 5 HD" is on cable. Is your mix file for satellite as that is what you want to change?

If you are using HD numbering, the official number is 105. If you are using SD numbering, the official number is 171. Adapt your mix file for the numbering system you are using.

My "test" I did 101 and checked channel number 101, not realising that correponds to "original" 101 which is 115 on my box due to the "HD autoswap" by ABM. Plus i had forgetten to do Enigma2 restart. I've got it working exactly how I want now. Channel numbers used are the default original ones for the swaps ABM does automatically for HD swap, and for "manual" swaps I do, I use the new number. This works perfect.

I've renamed a small handful of channels, thanks for all the help guys!! Happy days.
 

OpenViX Feeds Status

Back
Top