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

This commit is contained in:
Ryan Cohen
2022-09-16 11:01:29 +09:00
committed by GitHub
parent 3d458dd2fd
commit d8da5cbe9d

View File

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