X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;f=Navigation.py;h=06d47ac4fcad6f6cf83de246bde15670c52942a3;hb=1a2572289b607810dfc4a91970a4576034c2e58a;hp=50cdf01f3b00e3024dff1efa0f5385ff3150c2f2;hpb=2b557e7ef4b0518736c5162a501cd9bc743930b3;p=vuplus_dvbapp diff --git a/Navigation.py b/Navigation.py index 50cdf01..06d47ac 100644 --- a/Navigation.py +++ b/Navigation.py @@ -1,4 +1,4 @@ -from enigma import * +from enigma import eServiceCenter, eServiceReference, pNavigation, getBestPlayableServiceReference from Components.ParentalControl import parentalControl from Tools.BoundFunction import boundFunction import RecordTimer @@ -28,12 +28,10 @@ class Navigation: self.record_event = [ ] self.currentlyPlayingServiceReference = None self.currentlyPlayingService = None - self.state = 0 self.RecordTimer = RecordTimer.RecordTimer() self.SleepTimer = SleepTimer.SleepTimer() def dispatchEvent(self, i): - self.state = i != 1 for x in self.event: x(i) @@ -91,11 +89,9 @@ class Navigation: return self.pnav and self.pnav.getRecordings() def getCurrentService(self): - if self.state: - if not self.currentlyPlayingService: - self.currentlyPlayingService = self.pnav and self.pnav.getCurrentService() - return self.currentlyPlayingService - return None + if not self.currentlyPlayingService: + self.currentlyPlayingService = self.pnav and self.pnav.getCurrentService() + return self.currentlyPlayingService def stopService(self): print "stopService"