fix: make compilation_group an array of album ids in artist response

This commit is contained in:
Xoconoch
2025-08-28 07:07:13 -06:00
parent c0cc9a6b6f
commit 6d33201a71

View File

@@ -221,7 +221,7 @@ class LibrespotClient:
out: Dict[str, Any] = {} out: Dict[str, Any] = {}
for field, value in msg.ListFields(): for field, value in msg.ListFields():
name = field.name name = field.name
if name in ("album_group", "single_group", "appears_on_group"): if name in ("album_group", "single_group", "compilation_group", "appears_on_group"):
try: try:
ids = [] ids = []
for ag in value: # repeated AlbumGroup for ag in value: # repeated AlbumGroup