From 94b28ac26f18b3955d74981a926fd86b67d61e8a Mon Sep 17 00:00:00 2001 From: jeffvli Date: Wed, 24 Nov 2021 01:31:04 -0800 Subject: [PATCH] Decrease playing save chunk size from 300 -> 200 - Resolve 414 error due to query parameter length --- src/api/jellyfinApi.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/jellyfinApi.ts b/src/api/jellyfinApi.ts index 2ad44f9..88386ee 100644 --- a/src/api/jellyfinApi.ts +++ b/src/api/jellyfinApi.ts @@ -282,7 +282,7 @@ export const updatePlaylistSongs = async (options: { name: string; entry: Song[] export const updatePlaylistSongsLg = async (options: { id: string; entry: Song[] }) => { const entryIds = _.map(options.entry, 'id'); - const entryIdChunks = _.chunk(entryIds, 300); + const entryIdChunks = _.chunk(entryIds, 200); const res: any[] = []; for (let i = 0; i < entryIdChunks.length; i += 1) {