Chore: add plex container size to requests (#4903)

pull/4907/head
shamoon 1 month ago committed by GitHub
parent 4c91dfa71b
commit e9630afa30
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -41,7 +41,12 @@ async function fetchFromPlexAPI(endpoint, widget) {
const url = new URL(formatApiCall(api, { endpoint, ...widget }));
const [status, contentType, data] = await httpProxy(url);
const [status, contentType, data] = await httpProxy(url, {
headers: {
"X-Plex-Container-Start": `0`,
"X-Plex-Container-Size": `500`,
},
});
if (status !== 200) {
logger.error("HTTP %d communicating with Plex. Data: %s", status, data.toString());

Loading…
Cancel
Save