Skip to content

Commit

Permalink
fix(plex): add container-size header to recently added api call (#3023)
Browse files Browse the repository at this point in the history
  • Loading branch information
sct committed Sep 16, 2022
1 parent 3d458dd commit d8da5cb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions server/api/plexapi.ts
Expand Up @@ -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;
Expand Down

0 comments on commit d8da5cb

Please sign in to comment.