def do_play_what(self, line): ''' Detail status of what is currently played Usage: play_what ''' logger.debug('call function do_play_what') item = kodi_api.player_get_item(self.kodi_params) properties = kodi_api.player_get_properties(self.kodi_params) items = kodi_api.playlist_get_items(self.kodi_params) fancy_disp.now_playing(item, properties) fancy_disp.next_playing(properties, items)
def do_play_favorite(self, line): ''' Like the current song (in your echonest tasteprofile) Usage: play_favorite ''' logger.debug('call function do_play_favorite') song_id = kodi_api.player_get_item(self.kodi_params) profile_id = get_profile_id(self.api_key) en_api.echonest_favorite(self.api_key, profile_id, song_id) print fancy_disp.favorite(song_id, self.songs) print
def do_play_skip(self, line): ''' Skip the current song Usage: play_skip ''' logger.debug('call function do_play_skip') song_id = kodi_api.player_get_item(self.kodi_params) profile_id = get_profile_id(self.api_key) kodi_api.player_goto(self.kodi_params) en_api.echonest_skip(self.api_key, profile_id, song_id) print fancy_disp.skip(song_id, self.songs) print