fixup! Rework my page and add info from listenbrainz
This commit is contained in:
@@ -40,7 +40,7 @@ def parse_listens(data: dict) -> dict:
|
||||
}
|
||||
|
||||
if mb := track.get("mbid_mapping"):
|
||||
new_track["id"] = mb["caa_release_mbid"]
|
||||
new_track["id"] = mb.get("caa_release_mbid", mb["release_mbid"])
|
||||
new_track["artist_name"] = mb["artists"][0]["artist_credit_name"]
|
||||
new_track["track_name"] = mb["recording_name"]
|
||||
elif info := track.get("additional_info"):
|
||||
|
||||
Reference in New Issue
Block a user