1
0

fix: skip null album entries in subsonic pagination

This commit is contained in:
2026-08-29 16:35:01 +02:00
parent dc63db54ba
commit 9b52039fde
2 changed files with 23 additions and 0 deletions

View File

@@ -85,6 +85,7 @@ export class SubsonicClient {
})
const list: any[] = envelope.albumList2?.album ?? []
for (const a of list) {
if (!a || a.id == null) continue
all.push({ id: String(a.id), title: a.name ?? a.title ?? '', artist: a.artist ?? '' })
}
onProgress?.(all, all.length)