示例#1
0
    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)
示例#2
0
    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)
示例#3
0
    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)
示例#4
0
    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)