Browse Source

Decrease playing save chunk size from 300 -> 200

- Resolve 414 error due to query parameter length
master
jeffvli 3 years ago
committed by Jeff
parent
commit
94b28ac26f
  1. 2
      src/api/jellyfinApi.ts

2
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) {

Loading…
Cancel
Save