Merge branch '1082-subsonic-starred' into 'master'

Fix #1082: issue when displaying starred tracks on subsonic

See merge request funkwhale/funkwhale!1109
This commit is contained in:
Agate 2020-05-04 13:20:31 +02:00
commit ead94f47a4
2 changed files with 2 additions and 1 deletions

View File

@ -130,7 +130,7 @@ def get_track_data(album, track, upload):
data["bitrate"] = int(upload.bitrate / 1000)
if upload.size:
data["size"] = upload.size
if album.release_date:
if album and album.release_date:
data["year"] = album.release_date.year
else:
data["year"] = track.creation_date.year

View File

@ -0,0 +1 @@
Fixed issue when displaying starred tracks on subsonic (#1082)