Skip to content
Snippets Groups Projects
Commit b42675b5 authored by rrrnld's avatar rrrnld 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
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
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