def do_play_christmas(self, line):
     """Play seasonal Christmas songs"""
     logger.debug('call function do_play_christmas')
     profile_id = pk.en_profile_id(self.params['echonest_key'])
     songids = pk.en_playlist_seed_song_type(self.params['echonest_key'], profile_id, 'christmas')
     pk.playback_stop(self.params)
     pk.playlist_clear(self.params)
     pk.playlist_add_songs(self.params, songids)
     pk.playback_start(self.params)
예제 #2
0
 def do_play_christmas(self, line):
     """Play seasonal Christmas songs"""
     logger.debug('call function do_play_christmas')
     profile_id = pk.en_profile_id(self.params['echonest_key'])
     songids = pk.en_playlist_seed_song_type(self.params['echonest_key'],
                                             profile_id, 'christmas')
     pk.playback_stop(self.params)
     pk.playlist_clear(self.params)
     pk.playlist_add_songs(self.params, songids)
     pk.playback_start(self.params)
 def do_playlist_taste_seed_type(self, line):
     """
     Create a playlist from echonest taste profile seeded by a song type
     Usage: playlist_taste_seed christmas|live|studio
         Generate a new playlist based on your echonest taste,
         profile seeded by a song type. The current playlist is
         removed before.
     """
     logger.debug('call function do_playlist_taste_seed_type')
     song_type = line
     profile_id = pk.en_profile_id(self.params['echonest_key'])
     songids = pk.en_playlist_seed_song_type(self.params['echonest_key'], profile_id, song_type)
     pk.playlist_clear(self.params)
     pk.playlist_add_songs(self.params, songids)
     pkd.songs_index(songids, self.songs)
     print
예제 #4
0
 def do_playlist_taste_seed_type(self, line):
     """
     Create a playlist from echonest taste profile seeded by a song type
     Usage: playlist_taste_seed christmas|live|studio
         Generate a new playlist based on your echonest taste,
         profile seeded by a song type. The current playlist is
         removed before.
     """
     logger.debug('call function do_playlist_taste_seed_type')
     song_type = line
     profile_id = pk.en_profile_id(self.params['echonest_key'])
     songids = pk.en_playlist_seed_song_type(self.params['echonest_key'],
                                             profile_id, song_type)
     pk.playlist_clear(self.params)
     pk.playlist_add_songs(self.params, songids)
     pkd.songs_index(songids, self.songs)
     print