profile("PYTHON_START")
from enigma import runMainloop, eDVBDB, eTimer, quitMainloop, \
- getDesktop, ePythonConfigQuery, eAVSwitch, eServiceEvent
+ getDesktop, ePythonConfigQuery, eAVSwitch, eServiceEvent, \
+ eEPGCache
from tools import *
profile("LANGUAGE")
config.misc.useTransponderTime = ConfigYesNo(default=True)
config.misc.startCounter = ConfigInteger(default=0) # number of e2 starts...
config.misc.standbyCounter = NoSave(ConfigInteger(default=0)) # number of standby
+config.misc.epgcache_filename = ConfigText(default = "/hdd/epg.dat")
+
+def setEPGCachePath(configElement):
+ eEPGCache.getInstance().setCacheFile(configElement.value)
+
#demo code for use of standby enter leave callbacks
#def leaveStandby():
else:
session.open(screen, *args)
+ config.misc.epgcache_filename.addNotifier(setEPGCachePath)
+
runNextScreen(session, screensToRun)
profile("Init:VolumeControl")