mirror of
https://github.com/karl0ss/homepage.git
synced 2025-04-29 12:03:41 +01:00
Chore: add plex container size to requests (#4903)
This commit is contained in:
parent
4c91dfa71b
commit
e9630afa30
@ -41,7 +41,12 @@ async function fetchFromPlexAPI(endpoint, widget) {
|
|||||||
|
|
||||||
const url = new URL(formatApiCall(api, { 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) {
|
if (status !== 200) {
|
||||||
logger.error("HTTP %d communicating with Plex. Data: %s", status, data.toString());
|
logger.error("HTTP %d communicating with Plex. Data: %s", status, data.toString());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user