Commit b42675b5 authored by heyarne's avatar heyarne Committed by Agate
Browse files

Omit recording_mbid if no data is available; fixes...

Omit recording_mbid if no data is available; fixes funkwhale/funkwhale#1310
parent dc412579
......@@ -22,11 +22,13 @@ def get_track(track):
album = None
additional_info = {
"listening_from": "Funkwhale",
"recording_mbid": str(track.mbid),
"tracknumber": track.position,
"discnumber": track.disc_number,
}
if track.mbid:
additional_info["recording_mbid"] = str(track.mbid)
if track.album:
if track.album.title:
album = track.album.title
......
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