Navigation: When the reference is already playing it should be successfull
authorlittlesat <littlesat99@yahoo.com>
Fri, 27 Jun 2014 17:26:28 +0000 (19:26 +0200)
committerlittlesat <littlesat99@yahoo.com>
Fri, 27 Jun 2014 17:26:28 +0000 (19:26 +0200)
Navigation.py

index 75dba48..cb57ffe 100644 (file)
@@ -63,7 +63,7 @@ class Navigation:
                oldref = self.currentlyPlayingServiceOrGroup
                if ref and oldref and ref == oldref and not forceRestart:
                        print "ignore request to play already running service(1)"
-                       return 0
+                       return 1
                print "playing", ref and ref.toString()
                if ref is None:
                        self.stopService()
@@ -77,7 +77,7 @@ class Navigation:
                                print "playref", playref
                                if playref and oldref and playref == oldref and not forceRestart:
                                        print "ignore request to play already running service(2)"
-                                       return 0
+                                       return 1
                                if not playref or (checkParentalControl and not parentalControl.isServicePlayable(playref, boundFunction(self.playService, checkParentalControl = False))):
                                        self.stopService()
                                        return 0