mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-15 04:51:06 +02:00
Fix server queue saving/restoring on Navidrome and OpenSubsonic (#1828)
* fix server queue saving * fix error when attempting to restore empty queue * queue items optional * make playQueueByIndex optional * fix incorrect error message
This commit is contained in:
@@ -636,7 +636,7 @@ export const NavidromeController: InternalControllerEndpoint = {
|
||||
throw new Error('Failed to get play queue');
|
||||
}
|
||||
|
||||
const { changedBy, current, items, position, updatedAt } = res.body.data;
|
||||
const { changedBy, current, items = [], position, updatedAt } = res.body.data; // if there is no queue saved, items is undefined
|
||||
|
||||
const entries = items.map((song) =>
|
||||
ndNormalize.song(
|
||||
|
||||
Reference in New Issue
Block a user