Commit ead94f47 authored by Agate's avatar Agate 💬
Browse files

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

Fix #1082: issue when displaying starred tracks on subsonic

See merge request funkwhale/funkwhale!1109
parents c1e2f16d 7b81d94e
......@@ -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
......
Fixed issue when displaying starred tracks on subsonic (#1082)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment