def do_playlist_add_albums(self, line):
     """
     Add an album to the playlist
     Usage: playlist_add_albums id
         Add the album id to the current playlist. Use the
         albums function to find the id.
     """
     logger.debug('call function do_playlist_add_albums')
     albumids = []
     albumids.append(int(line))
     pk.playlist_add_albums(self.params, albumids)
Exemple #2
0
 def do_playlist_add_albums(self, line):
     """
     Add an album to the playlist
     Usage: playlist_add_albums id
         Add the album id to the current playlist. Use the
         albums function to find the id.
     """
     logger.debug('call function do_playlist_add_albums')
     albumids = []
     albumids.append(int(line))
     pk.playlist_add_albums(self.params, albumids)
 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)
Exemple #5
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)
Exemple #6
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)