def do_play_stop(self, line):
     """
     Stop the music
     Usage: play_stop
         Stop the music and go home, I repeat, stop the music and go home.
     """
     logger.debug('call function do_play_stop')
     pk.playback_stop(self.params)
Example #2
0
 def do_play_stop(self, line):
     """
     Stop the music
     Usage: play_stop
         Stop the music and go home, I repeat, stop the music and go home.
     """
     logger.debug('call function do_play_stop')
     pk.playback_stop(self.params)
 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)
Example #4
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_play_songs(self, line):
     """
     Play a given song
     Usage: play_songs id
     """
     logger.debug('call function do_play_songs')
     songids = []
     songids.append(int(line))
     pk.playback_stop(self.params)
     pk.playlist_clear(self.params)
     pk.playlist_add_songs(self.params, songids)
     pk.playback_start(self.params)
 def do_play_genres(self, line):
     """
     Play a given genre
     Usage: play_genres id
     """
     logger.debug('call function do_play_genres')
     genreids = []
     genreids.append(int(line))
     pk.playback_stop(self.params)
     pk.playlist_clear(self.params)
     pk.playlist_add_albums(self.params, genreids)
     pk.playback_start(self.params)
 def do_play_albums(self, line):
     """
     Play a given album
     Usage: play_albums id
     """
     logger.debug('call function do_play_songs')
     albumids = []
     albumids.append(int(line))
     pk.playback_stop(self.params)
     pk.playlist_clear(self.params)
     pk.playlist_add_albums(self.params, albumids)
     pk.playback_start(self.params)
Example #8
0
 def do_play_songs(self, line):
     """
     Play a given song
     Usage: play_songs id
     """
     logger.debug('call function do_play_songs')
     songids = []
     songids.append(int(line))
     pk.playback_stop(self.params)
     pk.playlist_clear(self.params)
     pk.playlist_add_songs(self.params, songids)
     pk.playback_start(self.params)
Example #9
0
 def do_play_genres(self, line):
     """
     Play a given genre
     Usage: play_genres id
     """
     logger.debug('call function do_play_genres')
     genreids = []
     genreids.append(int(line))
     pk.playback_stop(self.params)
     pk.playlist_clear(self.params)
     pk.playlist_add_albums(self.params, genreids)
     pk.playback_start(self.params)
Example #10
0
 def do_play_albums(self, line):
     """
     Play a given album
     Usage: play_albums id
     """
     logger.debug('call function do_play_songs')
     albumids = []
     albumids.append(int(line))
     pk.playback_stop(self.params)
     pk.playlist_clear(self.params)
     pk.playlist_add_albums(self.params, albumids)
     pk.playback_start(self.params)