X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=blobdiff_plain;f=Navigation.py;h=2437bbf5ecf5e4c594f2e7aafba7657a4d6bfa2b;hp=2ca87f6f57d4acd0b7dfadb03100f360f5ca7178;hb=5e24af16847c51868366b1ffc427ef3d480ed479;hpb=80059ab78691323ff8bb30ba4db8577a5185fc6d diff --git a/Navigation.py b/Navigation.py index 2ca87f6..2437bbf 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()