Unverified Commit 7b81d94e authored by Agate's avatar Agate 💬
Browse files

Fix #1082: issue when displaying starred tracks on subsonic

parent c1e2f16d
...@@ -130,7 +130,7 @@ def get_track_data(album, track, upload): ...@@ -130,7 +130,7 @@ def get_track_data(album, track, upload):
data["bitrate"] = int(upload.bitrate / 1000) data["bitrate"] = int(upload.bitrate / 1000)
if upload.size: if upload.size:
data["size"] = upload.size data["size"] = upload.size
if album.release_date: if album and album.release_date:
data["year"] = album.release_date.year data["year"] = album.release_date.year
else: else:
data["year"] = track.creation_date.year 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