Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Philipp Wolfer
funkwhale
Commits
7b81d94e
Unverified
Commit
7b81d94e
authored
May 04, 2020
by
Agate
💬
Browse files
Fix #1082: issue when displaying starred tracks on subsonic
parent
c1e2f16d
Changes
2
Hide whitespace changes
Inline
Side-by-side
api/funkwhale_api/subsonic/serializers.py
View file @
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
...
...
changes/changelog.d/1082.bugfix
0 → 100644
View file @
7b81d94e
Fixed issue when displaying starred tracks on subsonic (#1082)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment