Skip to content
Snippets Groups Projects
Verified Commit 1d787904 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Merge branch 'master' into develop

parents e2c88b98 41ffff9a
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment