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)
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)