def removeFromPlaylistReal(self):
		try:
			if interface.removeFromPlaylist(self["list"].getCurrent()[0]):
				self.list.remove(self["list"].getCurrent())
				self["list"].setList(self.list)
		except Exception, e:
			self.session.open(MessageBox, _("Error removing video from playlist:\n%s" %
					e), MessageBox.TYPE_ERROR)
Exemple #2
0
	def removeFromPlaylistReal(self):
		try:
			if interface.removeFromPlaylist(self["list"].getCurrent()[0]):
				self.list.remove(self["list"].getCurrent())
				self["list"].setList(self.list)
		except Exception as e:
			self.session.open(MessageBox, _("Error removing video from playlist:\n%s" %
					e), MessageBox.TYPE_ERROR)