def _hPaused(self): """ Current Song paused """ dkp = dkplayer.dkPlayer(PLUGIN_NAME) try: dkp.announce_pause() except: pass
def _hResumed(self): """ Current Song resumed """ dkp = dkplayer.dkPlayer(PLUGIN_NAME) try: dkp.announce_resume() except: pass
def _hNewPlaying(self): """ New Song started playing """ self.details=EntryHelper.track_details(self.shell, self.current_entry) print self.details dkp = dkplayer.dkPlayer(PLUGIN_NAME) try: dkp.announce_start(**self.details) except: print "Last.fm Desktop Client unreachable"