From 1fd30777f64ad4213a6cac250fb8cc03847f1a6c Mon Sep 17 00:00:00 2001 From: Ricter Zheng Date: Sun, 15 Mar 2026 11:39:15 +0800 Subject: [PATCH 1/2] Add albumArtURI to MusicTrack didl_properties_defs albumArtURI is a standard UPnP/DLNA field commonly used by music players (e.g., Kodi, Home Assistant dlna_dmr) to display cover art during playback. Without this entry in didl_properties_defs, the field is silently dropped during to_xml() serialization even when set on the object. Co-Authored-By: Claude Sonnet 4.6 --- didl_lite/didl_lite.py | 1 + 1 file changed, 1 insertion(+) diff --git a/didl_lite/didl_lite.py b/didl_lite/didl_lite.py index c9acb87..116938b 100644 --- a/didl_lite/didl_lite.py +++ b/didl_lite/didl_lite.py @@ -312,6 +312,7 @@ class MusicTrack(AudioItem): didl_properties_defs = AudioItem.didl_properties_defs + [ ("upnp", "artist", "O"), ("upnp", "album", "O"), + ("upnp", "albumArtURI", "O"), ("upnp", "originalTrackNumber", "O"), ("upnp", "playlist", "O"), ("upnp", "storageMedium", "O"), From 5f3942c345b202606a4e09fed3c5742dd35717b9 Mon Sep 17 00:00:00 2001 From: Ricter Zheng Date: Tue, 17 Mar 2026 08:24:25 +0800 Subject: [PATCH 2/2] Add towncrier fragment for PR #45 Co-Authored-By: Claude Sonnet 4.6 --- changes/45.feature.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 changes/45.feature.rst diff --git a/changes/45.feature.rst b/changes/45.feature.rst new file mode 100644 index 0000000..3f61927 --- /dev/null +++ b/changes/45.feature.rst @@ -0,0 +1 @@ +Add ``albumArtURI`` to ``MusicTrack`` didl_properties_defs.