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