Only close movieplayer list in standby when parental locked is involved
authorlittlesat <littlesat99@yahoo.com>
Fri, 22 May 2015 21:48:50 +0000 (23:48 +0200)
committerlittlesat <littlesat99@yahoo.com>
Fri, 22 May 2015 21:48:50 +0000 (23:48 +0200)
lib/python/Screens/MovieSelection.py

index cc47bc0..c292193 100644 (file)
@@ -704,7 +704,13 @@ class MovieSelection(Screen, HelpableScreen, SelectionEventInfo, InfoBarBase, Pr
                return config.ParentalControl.setuppinactive.value and config.ParentalControl.config_sections.movie_list.value
 
        def standbyCountChanged(self, value):
-               self.close(None)
+               path = self.getTitle().split(" /", 1)
+               if path and len(path) > 1:
+                       if [x for x in path[1].split("/") if x.startswith(".") and not x.startswith(".Trash")]:
+                               moviepath = defaultMoviePath()
+                               if moviepath:
+                                       config.movielist.last_videodir.value = defaultMoviePath()
+                                       self.close(None)
 
        def unhideParentalServices(self):
                if self.protectContextMenu: