fix(plex): add container-size header to recently added api call (#3023)

pull/2992/head
Ryan Cohen 2 years ago committed by GitHub
parent 3d458dd2fd
commit d8da5cbe9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -232,6 +232,10 @@ class PlexAPI {
uri: `/library/sections/${id}/all?sort=addedAt%3Adesc&addedAt>>=${Math.floor( uri: `/library/sections/${id}/all?sort=addedAt%3Adesc&addedAt>>=${Math.floor(
options.addedAt / 1000 options.addedAt / 1000
)}`, )}`,
extraHeaders: {
'X-Plex-Container-Start': `0`,
'X-Plex-Container-Size': `500`,
},
}); });
return response.MediaContainer.Metadata; return response.MediaContainer.Metadata;

Loading…
Cancel
Save