mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-07 04:20:12 +02:00
fix missing playlistItemId for subsonic song normalization (#1564)
This commit is contained in:
@@ -1056,12 +1056,13 @@ export const SubsonicController: InternalControllerEndpoint = {
|
||||
}
|
||||
|
||||
const items =
|
||||
res.body.playlist.entry?.map((song) =>
|
||||
res.body.playlist.entry?.map((song, index) =>
|
||||
ssNormalize.song(
|
||||
song,
|
||||
apiClientProps.server,
|
||||
context?.pathReplace,
|
||||
context?.pathReplaceWith,
|
||||
index,
|
||||
),
|
||||
) || [];
|
||||
|
||||
|
||||
@@ -133,6 +133,7 @@ const normalizeSong = (
|
||||
server?: null | ServerListItemWithCredential,
|
||||
pathReplace?: string,
|
||||
pathReplaceWith?: string,
|
||||
playlistIndex?: number,
|
||||
): Song => {
|
||||
const participants = getParticipants(item);
|
||||
|
||||
@@ -189,6 +190,7 @@ const normalizeSong = (
|
||||
}
|
||||
: null,
|
||||
playCount: item?.playCount || 0,
|
||||
playlistItemId: playlistIndex !== undefined ? playlistIndex.toString() : undefined,
|
||||
releaseDate: null,
|
||||
releaseYear: item.year || null,
|
||||
sampleRate: item.samplingRate || null,
|
||||
|
||||
Reference in New Issue
Block a user