When movielist is parental locked revert to default movielist
authorlittlesat <littlesat99@yahoo.com>
Sat, 4 Apr 2015 17:27:14 +0000 (19:27 +0200)
committerlittlesat <littlesat99@yahoo.com>
Sat, 4 Apr 2015 17:27:14 +0000 (19:27 +0200)
lib/python/Screens/Standby.py

index 2a539bc..043637c 100644 (file)
@@ -80,6 +80,14 @@ class Standby(Screen):
                                else:
                                        self.timeHandler.m_timeUpdated.get().append(self.stopService)
 
+               movie = config.usage.last_movie_played.value
+               movie = movie and movie.rsplit(":", 1)[1]
+               if movie.startswith("/") and [x for x in movie[1:].split("/") if x.startswith(".") and not x.startswith(".Trash")]:
+                       from Screens.MovieSelection import defaultMoviePath
+                       moviepath = defaultMoviePath()
+                       if moviepath:
+                               config.movielist.last_videodir.value = moviepath
+
                if self.session.pipshown:
                        self.infoBarInstance and hasattr(self.infoBarInstance, "showPiP") and self.infoBarInstance.showPiP()