User.get_now_playing: Add album and cover image to info
This commit is contained in:
parent
898a8b5756
commit
7689a1e95a
2 changed files with 6 additions and 1 deletions
|
@ -2338,8 +2338,9 @@ class User(_BaseObject, _Chartable):
|
|||
|
||||
artist = _extract(e, "artist")
|
||||
title = _extract(e, "name")
|
||||
info = {"album": _extract(e, "album"), "image": _extract_all(e, "image")}
|
||||
|
||||
return Track(artist, title, self.network, self.name)
|
||||
return Track(artist, title, self.network, self.name, info=info)
|
||||
|
||||
def get_recent_tracks(self, limit=10, cacheable=True, time_from=None, time_to=None):
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue