* 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())
| 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 |
no test coverage detected