X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=blobdiff_plain;f=mytest.py;h=7a8d7b70b537f65be5ea85bac5cf51b9775ffdba;hp=a3cfb5a2bddf44588edfb3eeecdb09565e369282;hb=aaa6a9751a34e2c0041210eedc3b4fb5915439ce;hpb=dd2f75a38c17459f1a3d46cf529a6b4fe3f7e3f2 diff --git a/mytest.py b/mytest.py index a3cfb5a..7a8d7b7 100755 --- a/mytest.py +++ b/mytest.py @@ -10,7 +10,8 @@ from Tools.Profile import profile, profile_final profile("PYTHON_START") from enigma import runMainloop, eDVBDB, eTimer, quitMainloop, \ - getDesktop, ePythonConfigQuery, eAVSwitch, eServiceEvent + getDesktop, ePythonConfigQuery, eAVSwitch, eServiceEvent, \ + eEPGCache from tools import * profile("LANGUAGE") @@ -55,6 +56,11 @@ config.misc.isNextRecordTimerAfterEventActionAuto = ConfigYesNo(default=False) 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(): @@ -472,6 +478,8 @@ def runScreenTest(): else: session.open(screen, *args) + config.misc.epgcache_filename.addNotifier(setEPGCachePath) + runNextScreen(session, screensToRun) profile("Init:VolumeControl")