Commit 1d787904 authored by Eliot Berriot's avatar Eliot Berriot 💬

Merge branch 'master' into develop

parents e2c88b98 41ffff9a
......@@ -273,7 +273,7 @@ def federation_audio_track_to_metadata(payload):
new_data = {
"title": payload["name"],
"album": payload["album"]["name"],
"track_number": payload["position"],
"track_number": payload.get("position") or 1,
"disc_number": payload.get("disc"),
"artist": payload["artists"][0]["name"],
"album_artist": payload["album"]["artists"][0]["name"],
Fixed a crash when federating a track with unspecified position
Markdown is supported
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