mirror of
https://github.com/spl0k/supysonic.git
synced 2024-12-22 17:06:17 +00:00
parent
104c9ffbb6
commit
2e8d57b9d0
@ -149,7 +149,9 @@ def artist_info():
|
|||||||
return res
|
return res
|
||||||
|
|
||||||
info = res.as_subsonic_artist(request.user)
|
info = res.as_subsonic_artist(request.user)
|
||||||
info['album'] = [ a.as_subsonic_album(request.user) for a in sorted(res.albums, key = lambda a: a.sort_key()) ]
|
albums = set(res.albums)
|
||||||
|
albums |= { t.album for t in res.tracks }
|
||||||
|
info['album'] = [ a.as_subsonic_album(request.user) for a in sorted(albums, key = lambda a: a.sort_key()) ]
|
||||||
|
|
||||||
return request.formatter({ 'artist': info })
|
return request.formatter({ 'artist': info })
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user