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

Method matchChannelEpg

frontend/src/api.js:2548–2566  ·  view source on GitHub ↗
(channelId)

Source from the content-addressed store, hash-verified

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 {

Callers 1

matchChannelEpgFunction · 0.80

Calls 3

requestFunction · 0.85
errorNotificationFunction · 0.85
updateChannelMethod · 0.80

Tested by

no test coverage detected