def do_play_skip(self, line):
     """
     Skip the current song (also in your echonest tasteprofile)
     Usage: play_skip
     """
     logger.debug('call function do_play_skip')
     songid = pk.player_songid(self.params)
     pk.player_next(self.params)
     profile_id = pk.en_profile_id(self.params['echonest_key'])
     pk.en_skip(self.params['echonest_key'], profile_id, songid)
     pkd.play_skip(songid, self.songs)
     print
 def do_play_favorite(self, line):
     """
     Like the current song (in your echonest tasteprofile)
     Usage: play_favorite
         The echonest integration should be activated.
     """
     logger.debug('call function do_play_favorite')
     songid = pk.player_songid(self.params)
     profile_id = pk.en_profile_id(self.params['echonest_key'])
     pk.en_favorite(self.params['echonest_key'], profile_id, songid)
     pkd.play_favorite(songid, self.songs)
     print
Exemplo n.º 3
0
 def do_play_skip(self, line):
     """
     Skip the current song (also in your echonest tasteprofile)
     Usage: play_skip
     """
     logger.debug('call function do_play_skip')
     songid = pk.player_songid(self.params)
     pk.player_next(self.params)
     profile_id = pk.en_profile_id(self.params['echonest_key'])
     pk.en_skip(self.params['echonest_key'], profile_id, songid)
     pkd.play_skip(songid, self.songs)
     print
Exemplo n.º 4
0
 def do_play_favorite(self, line):
     """
     Like the current song (in your echonest tasteprofile)
     Usage: play_favorite
         The echonest integration should be activated.
     """
     logger.debug('call function do_play_favorite')
     songid = pk.player_songid(self.params)
     profile_id = pk.en_profile_id(self.params['echonest_key'])
     pk.en_favorite(self.params['echonest_key'], profile_id, songid)
     pkd.play_favorite(songid, self.songs)
     print
 def do_play_ban(self, line):
     """
     Ban the current song (in your echonest tasteprofile) and skip
     Usage: play_ban
         The echonest integration should be activated.
     """
     logger.debug('call function do_play_ban')
     songid = pk.player_songid(self.params)
     pk.player_next(self.params)
     profile_id = pk.en_profile_id(self.params['echonest_key'])
     pk.en_ban(self.params['echonest_key'], profile_id, songid)
     pkd.play_ban(songid, self.songs)
     print
Exemplo n.º 6
0
 def do_play_ban(self, line):
     """
     Ban the current song (in your echonest tasteprofile) and skip
     Usage: play_ban
         The echonest integration should be activated.
     """
     logger.debug('call function do_play_ban')
     songid = pk.player_songid(self.params)
     pk.player_next(self.params)
     profile_id = pk.en_profile_id(self.params['echonest_key'])
     pk.en_ban(self.params['echonest_key'], profile_id, songid)
     pkd.play_ban(songid, self.songs)
     print