Skip to content

Commit 91bcc3b

Browse files
committed
implement albumArtist
Ref: eonpatapon#144
1 parent e342c50 commit 91bcc3b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/mpDris2.in.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -558,6 +558,12 @@ def update_metadata(self):
558558
else:
559559
self._metadata['xesam:artist'] = [mpd_meta['artist']]
560560

561+
if 'albumartist' in mpd_meta:
562+
if type(mpd_meta['albumartist']) == list:
563+
self._metadata['xesam:albumArtist'] = mpd_meta['albumartist']
564+
else:
565+
self._metadata['xesam:albumArtist'] = [mpd_meta['albumartist']]
566+
561567
if 'composer' in mpd_meta:
562568
if type(mpd_meta['composer']) == list:
563569
self._metadata['xesam:composer'] = mpd_meta['composer']

0 commit comments

Comments
 (0)