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:
parent
e8e0c5d743
commit
66d4d4979f
|
@ -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"])
|
||||
|
|
|
@ -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"])
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue
Block a user