MCPcopy Index your code
hub / github.com/Dispatcharr/Dispatcharr / getChannelsSummary

Method getChannelsSummary

frontend/src/api.js:265–274  ·  view source on GitHub ↗

* Retrieve a lightweight summary of channels (id, name, logo_id, * channel_number, uuid, epg_data_id, channel_group_id). * Designed for the TV Guide where full channel data is not needed.

(params = new URLSearchParams())

Source from the content-addressed store, hash-verified

263 * Designed for the TV Guide where full channel data is not needed.
264 */
265 static async getChannelsSummary(params = new URLSearchParams()) {
266 try {
267 const url = `${host}/api/channels/channels/summary/?${params.toString()}`;
268 const data = await request(url);
269 return Array.isArray(data) ? data : [];
270 } catch (e) {
271 errorNotification('Failed to retrieve channel summary', e);
272 return [];
273 }
274 }
275
276 // Repack visible auto-created channels into [start, end]; override
277 // pins are reservations and hidden non-pinned channels release their

Callers 3

getChannelsSummaryFunction · 0.80
DVRPageFunction · 0.80
loadGuideDataFunction · 0.80

Calls 2

requestFunction · 0.85
errorNotificationFunction · 0.85

Tested by

no test coverage detected