(channelId)
| 2546 | } |
| 2547 | |
| 2548 | static async matchChannelEpg(channelId) { |
| 2549 | try { |
| 2550 | const response = await request( |
| 2551 | `${host}/api/channels/channels/${channelId}/match-epg/`, |
| 2552 | { |
| 2553 | method: 'POST', |
| 2554 | } |
| 2555 | ); |
| 2556 | |
| 2557 | // Update the channel in the store with the refreshed data if provided |
| 2558 | if (response.channel) { |
| 2559 | useChannelsStore.getState().updateChannel(response.channel); |
| 2560 | } |
| 2561 | |
| 2562 | return response; |
| 2563 | } catch (e) { |
| 2564 | errorNotification('Failed to run EPG auto-match for channel', e); |
| 2565 | } |
| 2566 | } |
| 2567 | |
| 2568 | static async fetchActiveChannelStats() { |
| 2569 | try { |
no test coverage detected