+ self["freeDiskSpace"].update()
+
+ def doPathSelect(self):
+ self.session.openWithCallback(
+ self.gotFilename,
+ MovieLocationBox,
+ _("Please select the movie path..."),
+ config.movielist.last_videodir.value
+ )
+
+ def gotFilename(self, res):
+ if res is not None and res is not config.movielist.last_videodir.value:
+ if pathExists(res):
+ config.movielist.last_videodir.value = res
+ config.movielist.last_videodir.save()
+ self.current_ref = eServiceReference("2:0:1:0:0:0:0:0:0:0:" + res)
+ self["freeDiskSpace"].path = res
+ self.reloadList()
+ else:
+ self.session.open(
+ MessageBox,
+ _("Directory %s nonexistent.") % (res),
+ type = MessageBox.TYPE_ERROR,
+ timeout = 5
+ )