From: ghost Date: Sun, 13 Dec 2009 11:35:05 +0000 (+0100) Subject: Navigation.py: add possibility to restart the same service X-Git-Tag: 2.7.0~24^2~3^2~2 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/67763047e52bd4f8dc334c015cb9133e8b57dd82?hp=80e4cd758b53ebc828076b5a11a2ffb5053cc3b2 Navigation.py: add possibility to restart the same service --- 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()