ocarina: Set album art from on_load() attrs

It's available here, so I might as well.  Hopefully this will cut down
on the number of crashes I get, too...
This commit is contained in:
Bryan Schumaker 2011-06-17 23:44:28 -04:00
parent e8e0c5d743
commit 66d4d4979f
3 changed files with 2 additions and 3 deletions

View File

@ -74,5 +74,5 @@ def on_load(attrs):
YEAR.set_text("Year: %s" % attrs["year"])
LENGTH.set_text("Length: %s" % attrs["lenstr"])
COUNT.set_text("Play count: %s" % attrs["count"])
set_art("images/ocarina.png")
set_art(attrs["art"])
on_like(attrs["like"])

View File

@ -62,4 +62,4 @@ def on_pause():
def on_load(attrs):
now_playing.set_text("%s by %s" % (attrs["title"], attrs["artist"]))
duration.set_text(" / %s" % attrs["lenstr"])
set_art("images/ocarina.png")
set_art(attrs["art"])

View File

@ -20,7 +20,6 @@ def on_load(file, attrs):
footer.on_load(attrs)
queue.refresh()
body.cur_page_goto()
libsaria.path.lastfm.get_artwork(file)
callbacks.on_load = on_load
def on_like(like):