diff --git a/server/utils/poller.js b/server/utils/poller.js index 95d3b52..ac5d849 100644 --- a/server/utils/poller.js +++ b/server/utils/poller.js @@ -48,7 +48,7 @@ async function pollAllServices() { ))), timed('SABnzbd History', () => Promise.all(sabInstances.map(inst => axios.get(`${inst.url}/api`, { - params: { mode: 'history', apikey: inst.apiKey, output: 'json', limit: 20 } + params: { mode: 'history', apikey: inst.apiKey, output: 'json', limit: 10 } }).then(res => ({ instance: inst.id, data: res.data })).catch(err => { console.error(`[Poller] SABnzbd ${inst.id} history error:`, err.message); return { instance: inst.id, data: { history: { slots: [] } } }; @@ -65,7 +65,7 @@ async function pollAllServices() { timed('Sonarr Queue', () => Promise.all(sonarrInstances.map(inst => axios.get(`${inst.url}/api/v3/queue`, { headers: { 'X-Api-Key': inst.apiKey }, - params: { includeSeries: true, includeEpisode: true } + params: { includeSeries: true } }).then(res => ({ instance: inst.id, data: res.data })).catch(err => { console.error(`[Poller] Sonarr ${inst.id} queue error:`, err.message); return { instance: inst.id, data: { records: [] } }; @@ -74,7 +74,7 @@ async function pollAllServices() { timed('Sonarr History', () => Promise.all(sonarrInstances.map(inst => axios.get(`${inst.url}/api/v3/history`, { headers: { 'X-Api-Key': inst.apiKey }, - params: { pageSize: 20, includeSeries: true, includeEpisode: true } + params: { pageSize: 10, includeSeries: true } }).then(res => ({ instance: inst.id, data: res.data })).catch(err => { console.error(`[Poller] Sonarr ${inst.id} history error:`, err.message); return { instance: inst.id, data: { records: [] } }; @@ -92,7 +92,7 @@ async function pollAllServices() { timed('Radarr History', () => Promise.all(radarrInstances.map(inst => axios.get(`${inst.url}/api/v3/history`, { headers: { 'X-Api-Key': inst.apiKey }, - params: { pageSize: 20, includeMovie: true } + params: { pageSize: 10, includeMovie: true } }).then(res => ({ instance: inst.id, data: res.data })).catch(err => { console.error(`[Poller] Radarr ${inst.id} history error:`, err.message); return { instance: inst.id, data: { records: [] } };