mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-07 06:08:48 +00:00
Chore: add plex container size to requests (#4903)
This commit is contained in:
parent
4c91dfa71b
commit
e9630afa30
1 changed files with 6 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue