X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=blobdiff_plain;f=Navigation.py;h=2437bbf5ecf5e4c594f2e7aafba7657a4d6bfa2b;hp=2ca87f6f57d4acd0b7dfadb03100f360f5ca7178;hb=a415c30723058b3da1c7cbc1adf7c2205508915b;hpb=88b281557a05fb785a42274bf0f3bc328f9eebfd 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()