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