示例#1
0
    def play(self, arg=None, menuw=None):
        """
        Start playing the item
        """
        self.parent.current_item = self
        self.elapsed = 0

        if not self.menuw:
            self.menuw = menuw

        self.player = PlayerGUI(self, menuw)
        error = self.player.play()

        if error and menuw:
            AlertBox(text=error).show()
            rc.post_event(rc.PLAY_END)
示例#2
0
    def play(self, arg=None, menuw=None):
        """
        Start playing the item
        """
        logger.debug('%s.play(arg=%r, menuw=%r)', self.__module__, arg, menuw)
        self.parent.current_item = self
        self.elapsed = 0

        if not self.menuw:
            self.menuw = menuw

        self.player = PlayerGUI(self, menuw, arg)
        error = self.player.play()

        if error and menuw:
            AlertBox(text=error).show()
            rc.post_event(rc.PLAY_END)
示例#3
0
    def play(self, arg=None, menuw=None):
        """
        Start playing the item
        """
        self.parent.current_item = self
        self.elapsed = 0

        if not self.menuw:
            self.menuw = menuw

        self.player = PlayerGUI(self, menuw)
        error = self.player.play()

        #last.fm scrobbler
        if SCROBBLE:
            self.scrobbled = False
            thread.start_new_thread(self.scrobble_song,())

        if error and menuw:
            AlertBox(text=error).show()
            rc.post_event(rc.PLAY_END)