(channelUUIDs = null)
| 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/`, { |
no test coverage detected