kopia lustrzana https://dev.funkwhale.audio/funkwhale/funkwhale
Omit recording_mbid if no data is available; fixes https://dev.funkwhale.audio/funkwhale/funkwhale/-/issues/1310
rodzic
dc412579a0
commit
b42675b52d
|
@ -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
|
||||
|
|
Ładowanie…
Reference in New Issue