Merge branch 'bugfix/listenbrainz_without_recording_mbid' into 'develop'

Fix scrobbles without musicbrainz id for track

Closes #1310

See merge request funkwhale/funkwhale!1258
environments/review-docs-devel-1399dq/deployments/6607
Agate 2020-12-16 14:53:55 +01:00
commit 987059d733
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -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