environments/review-docs-devel-1399dq/deployments/6607
heyarne 2020-12-16 14:53:55 +01:00 zatwierdzone przez Agate
rodzic dc412579a0
commit b42675b52d
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