ocarina: Use new list_playlist() function

This commit is contained in:
Bryan Schumaker 2011-05-12 08:26:17 -04:00
parent 8b51871225
commit 64c6677263
1 changed files with 2 additions and 1 deletions

View File

@ -13,7 +13,8 @@ def set_label_text():
PLAYLIST_PAGE.label.set_text("Playlist (%s)" % playlist.num_visible())
def fill_playlist():
songs = playlist.walk_playlist("id", "title", "lenstr", "artist", "album", "year")
attrs = ("id", "title", "lenstr", "artist", "album", "year")
songs = libsaria.sources.list_playlist(*attrs)
playlist_page.insert(songs)
set_label_text()
fill_playlist()