I did look at adding a delete option for lamedb in service searching the code looks correct ive created a py file in python calling the message box then added the delete to menu.xml I can see it in the menu but when choosing it nothing happens like the if os exist isnt finding lamedb.
DeleteChannelData.py
Code:
from enigma import eTimer
import Components.Task
from Screens.MessageBox import MessageBox
from Components.config import config
class ChannelDeleteMsg(MessageBox):
def __init__(self, session):
MessageBox.__init__(self, session, _("Are you sure you want to delete the Channel data from:etc/enigma2/lamedb") , MessageBox.TYPE_YESNO, default=False)
self.skinName = "MessageBox"
code within menu.xml
Code:
<item weight="15" level="0" text="Delete Channel Data" >
<code>
from Components.DeleteChannelData import ChannelDeleteMsg
def msgClosed(ret):
if ret:
import os
if os.path.exists("etc/enigma2/lamedb"):
os.remove("etc/enigma2/lamedb")
self.session.openWithCallback(msgClosed, ChannelDeleteMsg)
</code></item>