just recalc length of visible entries in movie selection
[enigma2.git] / lib / python / Tools / RedirectTime.py
1 import time
2 from enigma import eDVBLocalTimeHandler
3
4 org_time = time.time
5 time_difference = eDVBLocalTimeHandler.getInstance().difference()
6
7 def myTime():
8         global time_difference
9         t = org_time()
10         t += time_difference
11         return t
12
13 def timeChangedCallback():
14         global time_difference
15         time_difference = eDVBLocalTimeHandler.getInstance().difference()
16
17 eDVBLocalTimeHandler.getInstance().m_timeUpdated.get().append(timeChangedCallback)
18 time.time = myTime