Fix #1082: issue when displaying starred tracks on subsonic
This commit is contained in:
parent
c1e2f16de1
commit
7b81d94e91
|
@ -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
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Fixed issue when displaying starred tracks on subsonic (#1082)
|
Loading…
Reference in New Issue