diff options
| author | ghost <andreas.monzner@multimedia-labs.de> | 2009-12-13 12:35:05 +0100 |
|---|---|---|
| committer | ghost <andreas.monzner@multimedia-labs.de> | 2009-12-17 15:23:06 +0100 |
| commit | 1cdcedc45a967b0ff5bb120779a8448554cf16ec (patch) | |
| tree | 275e755cec0fe88476375e2a478869eb7aa47211 /Navigation.py | |
| parent | f5f419866f81d7c356c633acdb39c9da91c3377c (diff) | |
| download | enigma2-1cdcedc45a967b0ff5bb120779a8448554cf16ec.tar.gz enigma2-1cdcedc45a967b0ff5bb120779a8448554cf16ec.zip | |
Navigation.py: add possibility to restart the same service
Diffstat (limited to 'Navigation.py')
| -rw-r--r-- | Navigation.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Navigation.py b/Navigation.py index 2ca87f6f..2437bbf5 100644 --- a/Navigation.py +++ b/Navigation.py @@ -50,9 +50,9 @@ class Navigation: for x in self.record_event: x(rec_service, event) - def playService(self, ref, checkParentalControl = True): + def playService(self, ref, checkParentalControl = True, forceRestart = False): oldref = self.currentlyPlayingServiceReference - if ref and oldref and ref == oldref: + if ref and oldref and ref == oldref and not forceRestart: print "ignore request to play already running service" return 0 print "playing", ref and ref.toString() |
