fix: skip null album entries in subsonic pagination
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user