From e9630afa3024e9a3884fc43a96443355b6516ad6 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Mon, 10 Mar 2025 13:42:49 -0700 Subject: [PATCH] Chore: add plex container size to requests (#4903) --- src/widgets/plex/proxy.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/widgets/plex/proxy.js b/src/widgets/plex/proxy.js index 2956f280..53931aca 100644 --- a/src/widgets/plex/proxy.js +++ b/src/widgets/plex/proxy.js @@ -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());