def rate_item(self, mediaitem): rate = CDialogRating("CRatingskin.xml", os.getcwd()) rate.doModal() if rate.state != 0: return -2 if self.is_user_logged_in() == False: dialog = xbmcgui.Dialog() dialog.ok(" Error", "You are not logged in.") return -1 #login to the Navi-X server result = self.nxrate_item(mediaitem, rate.rating)
def rate_item(self, mediaitem): #rate = CDialogRating("CRatingskin.xml", os.getcwd()) rate = CDialogRating("CRatingskin.xml", addon.getAddonInfo('path')) rate.doModal() if rate.state != 0: return -2 if self.is_user_logged_in() == False: dialog = xbmcgui.Dialog() dialog.ok(" Erreur", "Non logue.") return -1 #login to the server result = self.nxrate_item(mediaitem, rate.rating)
def rate_item(self, mediaitem): #rate = CDialogRating("CRatingskin.xml", os.getcwd()) rate = CDialogRating("CRatingskin.xml", addon.getAddonInfo('path')) rate.doModal() if rate.state != 0: return -2 if self.is_user_logged_in() == False: dialog = xbmcgui.Dialog() dialog.ok(" Erreur", "Non logue.") return -1 #login to the Navi-X server result = self.nxrate_item(mediaitem, rate.rating)