From 6f169574043bb08e1de98a66465a66a75f2e2394 Mon Sep 17 00:00:00 2001 From: krateng Date: Sat, 28 Oct 2023 16:08:52 +0200 Subject: [PATCH] Import from Maloja export now includes album artists --- dev/releases/3.2.yml | 3 ++- maloja/proccontrol/tasks/import_scrobbles.py | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/dev/releases/3.2.yml b/dev/releases/3.2.yml index e356eb7..1896894 100644 --- a/dev/releases/3.2.yml +++ b/dev/releases/3.2.yml @@ -3,7 +3,8 @@ minor_release_name: "Nicole" notes: - "[Architecture] Switched to linuxserver.io container base image" - "[Architecture] Reworked image handling" - - "[Feature] Added basic support for albums" + - "[Architecture] Removed pre-calculated stats" + - "[Feature] Added support for albums" - "[Feature] New start page" - "[Feature] Added UI for track-artist, track-album and album-artist association" - "[Feature] Added inline UI for association and merging in chart lists" diff --git a/maloja/proccontrol/tasks/import_scrobbles.py b/maloja/proccontrol/tasks/import_scrobbles.py index f095109..3d06ad3 100644 --- a/maloja/proccontrol/tasks/import_scrobbles.py +++ b/maloja/proccontrol/tasks/import_scrobbles.py @@ -443,6 +443,7 @@ def parse_maloja(inputf): 'track_artists': s['track']['artists'], 'track_length': s['track']['length'], 'album_name': s['track'].get('album',{}).get('albumtitle','') if s['track'].get('album') is not None else '', + 'album_artists': s['track'].get('album',{}).get('artists',None) if s['track'].get('album') is not None else '', 'scrobble_time': s['time'], 'scrobble_duration': s['duration'] },'')