MCPcopy Create free account
hub / github.com/Dispatcharr/Dispatcharr / getCurrentPrograms

Method getCurrentPrograms

frontend/src/api.js:1572–1584  ·  view source on GitHub ↗
(channelUUIDs = null)

Source from the content-addressed store, hash-verified

1570 }
1571
1572 static async getCurrentPrograms(channelUUIDs = null) {
1573 try {
1574 const response = await request(`${host}/api/epg/current-programs/`, {
1575 method: 'POST',
1576 body: { channel_uuids: channelUUIDs },
1577 });
1578
1579 return response;
1580 } catch (e) {
1581 console.error('Failed to retrieve current programs', e);
1582 return [];
1583 }
1584 }
1585
1586 static async getCurrentProgramForEpg(epgId) {
1587 const response = await request(`${host}/api/epg/current-programs/`, {

Callers 1

getCurrentProgramsFunction · 0.80

Calls 1

requestFunction · 0.85

Tested by

no test coverage detected