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