Fix #258: Implemented getCovertArt in Subsonic API to serve album covers

This commit is contained in:
Eliot Berriot 2018-05-31 23:46:15 +02:00
commit 8d50743b3b
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
6 changed files with 77 additions and 4 deletions

View file

@ -60,6 +60,7 @@ def test_get_artist_serializer(factories):
'album': [
{
'id': album.pk,
'coverArt': 'al-{}'.format(album.id),
'artistId': artist.pk,
'name': album.title,
'artist': artist.name,
@ -88,11 +89,13 @@ def test_get_album_serializer(factories):
'songCount': 1,
'created': album.creation_date,
'year': album.release_date.year,
'coverArt': 'al-{}'.format(album.id),
'song': [
{
'id': track.pk,
'isDir': 'false',
'title': track.title,
'coverArt': 'al-{}'.format(album.id),
'album': album.title,
'artist': artist.name,
'track': track.position,