Logo Search packages:      
Sourcecode: viridian version File versions  Download package

def AmpacheTools::AmpacheGUI::AmpacheGUI::load_playlist (   self,
  list 
)
Takes a list of song_ids and loads it into the audio engine.

Definition at line 3002 of file AmpacheGUI.py.

                                   :
            """Takes a list of song_ids and loads it into the audio engine."""
            self.audio_engine.clear_playlist()
            self.audio_engine.set_playlist(list)
            self.update_statusbar(_('Loading Playlist...'))
            i = 1
            print list
            for song in list:
                  self.update_statusbar(_('Querying for song %d/%d in playlist') % (i, len(list)))
                  if not dbfunctions.song_has_info(self.db_session, song):
                        song = self.ampache_conn.get_song_info(song)
                        self.check_and_populate_albums(song['artist_id'])
                        self.check_and_populate_songs( song['album_id'])
                  i += 1
            self.update_playlist_window()
            self.update_statusbar(_('Playlist loaded'))
            

Generated by  Doxygen 1.6.0   Back to index