コード例 #1
0
 def addToFavoritesReal(self):
     try:
         interface.addToFavorites(self["list"].getCurrent()[0])
     except Exception as e:
         self.session.open(MessageBox,
                           _("Error adding video to favorites:\n%s" % e),
                           MessageBox.TYPE_ERROR)
コード例 #2
0
	def addToFavoritesReal(self):
		try:
			interface.addToFavorites(self["list"].getCurrent()[0])
		except Exception, e:
			self.session.open(MessageBox, _("Error adding video to favorites:\n%s" %
					e), MessageBox.TYPE_ERROR)