X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/6ecc7dc132071039edf045ad55b3fb2773aed784..f7672781a51e8a21ccbd48ce53a72ad61f5d5e7e:/lib/python/Screens/InfoBarGenerics.py diff --git a/lib/python/Screens/InfoBarGenerics.py b/lib/python/Screens/InfoBarGenerics.py index 31dd3033..1dc0a117 100644 --- a/lib/python/Screens/InfoBarGenerics.py +++ b/lib/python/Screens/InfoBarGenerics.py @@ -977,12 +977,21 @@ class InfoBarExtensions: def extensionCallback(self, answer): if answer[1] == "pipon": + self.session.nav.stopService() self.pip = self.session.instantiateDialog(PictureInPicture) - self.pip.show() - self.pipshown = True - print "would show PiP now" + #self.pip.show() + + newservice = self.session.nav.getCurrentlyPlayingServiceReference() + self.pipservice = eServiceCenter.getInstance().play(newservice) + if self.pipservice and not self.pipservice.setTarget(1): + self.pipservice.start() + self.pipshown = True + else: + self.pipservice = None + del self.pip + elif answer[1] == "pipoff": - self.pip.hide() + #self.pip.hide() del self.pip self.pipshown = False @@ -1060,7 +1069,7 @@ class InfoBarInstantRecord: return list = [] for x in self.recording: - if x.dontSave: + if x.dontSave and x.isRunning(): list.append(TimerEntryComponent(x, False)) if answer[1] == "changeduration":