Skip to content
Snippets Groups Projects
Commit 987059d7 authored by Agate's avatar Agate 💬
Browse files

Merge branch 'bugfix/listenbrainz_without_recording_mbid' into 'develop'

Fix scrobbles without musicbrainz id for track

Closes #1310

See merge request funkwhale/funkwhale!1258
parents dc412579 b42675b5
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