mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-03 22:59:15 +02:00
Fix #1082: issue when displaying starred tracks on subsonic
This commit is contained in:
parent
c1e2f16de1
commit
7b81d94e91
2 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
|
|
1
changes/changelog.d/1082.bugfix
Normal file
1
changes/changelog.d/1082.bugfix
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Fixed issue when displaying starred tracks on subsonic (#1082)
|
Loading…
Add table
Add a link
Reference in a new issue