예제 #1
0
	def ok(self):
		currentry = self["config"].getCurrent()
		self.lastvideodirs = config.movielist.videodirs.value
		self.lasttimeshiftdirs = config.usage.allowed_timeshift_paths.value
		if config.usage.setup_level.index >= 2:
			txt = _("Default movie location")
		else:
			txt = _("Movie location")
		if currentry == self.default_entry:
			self.entrydirname = self.default_dirname
			self.session.openWithCallback(
				self.dirnameSelected,
				MovieLocationBox,
				txt,
				preferredPath(self.default_dirname.value)
			)
		elif currentry == self.timer_entry:
			self.entrydirname = self.timer_dirname
			self.session.openWithCallback(
				self.dirnameSelected,
				MovieLocationBox,
				_("New timers location"),
				preferredPath(self.timer_dirname.value)
			)
		elif currentry == self.instantrec_entry:
			self.entrydirname = self.instantrec_dirname
			self.session.openWithCallback(
				self.dirnameSelected,
				MovieLocationBox,
				_("Instant recordings location"),
				preferredPath(self.instantrec_dirname.value)
			)
예제 #2
0
 def ok(self):
     currentry = self['config'].getCurrent()
     self.lastvideodirs = config.movielist.videodirs.value
     self.lasttimeshiftdirs = config.usage.allowed_timeshift_paths.value
     self.lastautorecorddirs = config.usage.allowed_autorecord_paths.value
     if config.usage.setup_level.index >= 2:
         txt = _('Default movie location')
     else:
         txt = _('Movie location')
     if currentry == self.default_entry:
         self.entrydirname = self.default_dirname
         self.session.openWithCallback(
             self.dirnameSelected, MovieLocationBox, txt,
             preferredPath(self.default_dirname.value))
     elif currentry == self.timer_entry:
         self.entrydirname = self.timer_dirname
         self.session.openWithCallback(
             self.dirnameSelected, MovieLocationBox,
             _('New timers location'),
             preferredPath(self.timer_dirname.value))
     elif currentry == self.instantrec_entry:
         self.entrydirname = self.instantrec_dirname
         self.session.openWithCallback(
             self.dirnameSelected, MovieLocationBox,
             _('Instant recordings location'),
             preferredPath(self.instantrec_dirname.value))
예제 #3
0
 def ok(self):
     currentry = self["config"].getCurrent()
     self.lastvideodirs = config.movielist.videodirs.value
     self.lasttimeshiftdirs = config.usage.allowed_timeshift_paths.value
     if config.usage.setup_level.index >= 2:
         txt = _("Default movie location")
     else:
         txt = _("Movie location")
     if currentry == self.default_entry:
         self.entrydirname = self.default_dirname
         self.session.openWithCallback(
             self.dirnameSelected, MovieLocationBox, txt,
             preferredPath(self.default_dirname.value))
     elif currentry == self.timer_entry:
         self.entrydirname = self.timer_dirname
         self.session.openWithCallback(
             self.dirnameSelected, MovieLocationBox,
             _("Initial location in new timers"),
             preferredPath(self.timer_dirname.value))
     elif currentry == self.instantrec_entry:
         self.entrydirname = self.instantrec_dirname
         self.session.openWithCallback(
             self.dirnameSelected, MovieLocationBox,
             _("Location for instant recordings"),
             preferredPath(self.instantrec_dirname.value))
     elif currentry == self.timeshift_entry:
         self.entrydirname = self.timeshift_dirname
         config.usage.timeshift_path.value = self.timeshift_dirname.value
         self.session.openWithCallback(self.dirnameSelected,
                                       TimeshiftLocationBox)
예제 #4
0
	def ok(self):
		currentry = self["config"].getCurrent()
		self.lastvideodirs = config.movielist.videodirs.value
		self.lasttimeshiftdirs = config.usage.allowed_timeshift_paths.value
		if config.usage.setup_level.index >= 2:
			txt = _("Default movie location")
		else:
			txt = _("Movie location")
		if currentry == self.default_entry:
			self.entrydirname = self.default_dirname
			self.session.openWithCallback(
				self.dirnameSelected,
				MovieLocationBox,
				txt,
				preferredPath(self.default_dirname.value)
			)
		elif currentry == self.timer_entry:
			self.entrydirname = self.timer_dirname
			self.session.openWithCallback(
				self.dirnameSelected,
				MovieLocationBox,
				_("Initial location in new timers"),
				preferredPath(self.timer_dirname.value)
			)
		elif currentry == self.instantrec_entry:
			self.entrydirname = self.instantrec_dirname
			self.session.openWithCallback(
				self.dirnameSelected,
				MovieLocationBox,
				_("Location for instant recordings"),
				preferredPath(self.instantrec_dirname.value)
			)
		elif currentry == self.timeshift_entry:
			self.entrydirname = self.timeshift_dirname
			config.usage.timeshift_path.value = self.timeshift_dirname.value
			self.session.openWithCallback(
				self.dirnameSelected,
				TimeshiftLocationBox
			)
		elif currentry == self.picon_entry:
			self.entrydirname = self.picon_dirname
			self.session.openWithCallback(
				self.dirnameSelected,
				LocationBox,
				_("Picon location"),
				currDir =preferredPath(self.picon_dirname.value),
			)
		elif currentry == self.epgdir_entry:
			self.entrydirname = self.epg_dirname
			self.session.openWithCallback(
				self.dirnameSelected,
				LocationBox,
				_("EPG location"),
				currDir =preferredPath(self.epg_dirname.value),
			)
예제 #5
0
 def ok(self):
     currentry = self["config"].getCurrent()
     self.lastvideodirs = config.movielist.videodirs.value
     self.lasttimeshiftdirs = config.usage.allowed_timeshift_paths.value
     self.lastmovecopydir = config.AdvancedMovieSelection.movecopydirs.value
     txt = _("Default movie location")
     if currentry == self.default_entry:
         self.entrydirname = self.default_dirname
         self.session.openWithCallback(
             self.dirnameSelected,
             MovieLocationBox,
             txt,
             preferredPath(self.default_dirname.value)
         )
     elif currentry == self.timer_entry:
         self.entrydirname = self.timer_dirname
         self.session.openWithCallback(
             self.dirnameSelected,
             MovieLocationBox,
             _("Initial location in new timers"),
             preferredPath(self.timer_dirname.value)
         )
     elif currentry == self.instantrec_entry:
         self.entrydirname = self.instantrec_dirname
         self.session.openWithCallback(
             self.dirnameSelected,
             MovieLocationBox,
             _("Location for instant recordings"),
             preferredPath(self.instantrec_dirname.value)
         )
     elif currentry == self.timeshift_entry:
         self.entrydirname = self.timeshift_dirname
         config.usage.timeshift_path.value = self.timeshift_dirname.value
         self.session.openWithCallback(
             self.dirnameSelected,
             TimeshiftLocationBox
         )
     elif currentry == self.movecopy_entry:
         self.entrydirname = self.movecopy_dirname
         self.session.openWithCallback(
             self.dirnameSelected,
             MovieLocationBox,
             _("Location for move/copy files"),
             preferredPath(self.movecopy_dirname.value)
         )
예제 #6
0
 def ok(self):
     eRecordPathsSettings.ok(self)
     currentry = self["config"].getCurrent()
     if currentry == self.movecopy_entry:
         self.entrydirname = self.movecopy_dirname
         self.session.openWithCallback(
             self.dirnameSelected, MovieLocationBox,
             _("Location for move/copy files"),
             preferredPath(self.movecopy_dirname.value))
예제 #7
0
 def keySelect(self):
     item = self.getCurrentItem()
     if item in (config.usage.default_path, config.usage.timer_path,
                 config.usage.instantrec_path):
         # print("[Recordings] DEBUG: '%s', '%s', '%s'." % (self.getCurrentEntry(), item.value, preferredPath(item.value)))
         self.session.openWithCallback(self.pathSelect, MovieLocationBox,
                                       self.getCurrentEntry(),
                                       preferredPath(item.value))
     else:
         Setup.keySelect(self)
예제 #8
0
파일: HbbTV.py 프로젝트: aitchala/enigma2
 def _saveStreamToDisk(self):
     if self.isStreaming():
         title = _(
             "Please selection the location you want to download the current stream to."
         )
         self.session.openWithCallback(self._onSaveStreamToDisk,
                                       MovieLocationBox, title,
                                       preferredPath("<timer>"))
         return True
     return False
예제 #9
0
 def ok(self):
     eRecordPathsSettings.ok(self)
     currentry = self["config"].getCurrent()
     if currentry == self.movecopy_entry:
         self.entrydirname = self.movecopy_dirname
         self.session.openWithCallback(
             self.dirnameSelected,
             MovieLocationBox,
             _("Location for move/copy files"),
             preferredPath(self.movecopy_dirname.value)
         )
예제 #10
0
파일: HbbTV.py 프로젝트: st7TEAM/dreambox
	def _saveStreamToDisk(self):
		if self.isStreaming():
			title = _("Please selection the location you want to download the current stream to.")
			self.session.openWithCallback(self._onSaveStreamToDisk, MovieLocationBox, title, preferredPath("<timer>"))
			return True
		return False