X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;f=Navigation.py;h=06d47ac4fcad6f6cf83de246bde15670c52942a3;hb=a3d4ed7a6cafe80056916cfc6f27e8d4df94a90d;hp=ece892275a6458f74614cb3e9a07ba57aecf9356;hpb=d4ac90a0740a22c86e8f18a49a594e9a8f3746df;p=vuplus_dvbapp diff --git a/Navigation.py b/Navigation.py index ece8922..06d47ac 100644 --- a/Navigation.py +++ b/Navigation.py @@ -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"