예제 #1
0
	def globalList(self):
		self.ltype = 'sl_glob_playlist'
		self['ContentTitle'].setText("Global Playlist")

		self.filelist = SimplePlaylistIO.getPL('mp_global_pl_01')
		if self.filelist == []:
			self.keyLocked = True
			self['F4'].hide()
			self.filelist.append(("Keine globale Playlist gefunden.", "dump"))
		else:
			self['F4'].show()
			self.chooseMenuList.setList(map(simplelistListEntry, self.filelist))
			self.keyLocked = False
예제 #2
0
	def globalList(self):
		self.ltype = 'sl_glob_playlist'
		self['ContentTitle'].setText("Global Playlist-%02d" % config.mediaportal.sp_pl_number.value)
		self['F4'].show()
		self.filelist == []
		self.filelist = SimplePlaylistIO.getPL('mp_global_pl_%02d' % config.mediaportal.sp_pl_number.value)
		if self.filelist == []:
			self.keyLocked = True
			self['F4'].hide()
			self.filelist.append(("Keine Einträge gefunden.", "dump"))
		else:
			self['F4'].show()
			self.keyLocked = False
		self.chooseMenuList.setList(map(simplelistListEntry, self.filelist))