Пример #1
0
	def playlistChoosen(self, playlist):
		if playlist is not None:
			try:
				interface.addToPlaylist(playlist, self["list"].getCurrent()[0])
			except Exception, e:
				self.session.open(MessageBox, _("Error adding video to playlist:\n%s" %
					e), MessageBox.TYPE_ERROR)
Пример #2
0
	def playlistChoosen(self, playlist):
		if playlist is not None:
			try:
				interface.addToPlaylist(playlist, self["list"].getCurrent()[0])
			except Exception as e:
				self.session.open(MessageBox, _("Error adding video to playlist:\n%s" %
					e), MessageBox.TYPE_ERROR)