Also avoid unpause of recording from parental protected service
authorlittlesat <littlesat99@yahoo.com>
Sat, 4 Apr 2015 15:02:37 +0000 (17:02 +0200)
committerlittlesat <littlesat99@yahoo.com>
Sat, 4 Apr 2015 15:02:37 +0000 (17:02 +0200)
And when this is played fallback to the default recording directory

lib/python/Screens/InfoBar.py

index 27fbc4e..c96e425 100644 (file)
@@ -195,8 +195,14 @@ class MoviePlayer(InfoBarBase, InfoBarShowHide, InfoBarMenu, InfoBarSeek, InfoBa
                config.usage.last_movie_played.save()
 
        def standbyCountChanged(self, value):
-               path = self.cur_service.getPath()
-               if path.startswith("/") and [x for x in path[1:].split("/") if x.startswith(".")]:
+               service = self.cur_service
+               path = service.getPath()
+               from Components.ParentalControl import parentalControl
+               if parentalControl.isProtected(service) or path.startswith("/") and [x for x in path[1:].split("/") if x.startswith(".")]:
+                       from Screens.MovieSelection import defaultMoviePath
+                       moviepath = defaultMoviePath()
+                       if moviepath:
+                               config.movielist.last_videodir.value = moviepath
                        self.close()
 
        def handleLeave(self, how):