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

Function fetchPrograms

frontend/src/utils/guideUtils.js:118–130  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

116}
117
118export const fetchPrograms = async () => {
119 console.log('Fetching program grid...');
120 const fetched = await API.getGrid(); // GETs your EPG grid
121 console.log(`Received ${fetched.length} programs`);
122
123 return fetched.map((program) => {
124 return {
125 ...program,
126 startMs: convertToMs(program.start_time),
127 endMs: convertToMs(program.end_time),
128 };
129 });
130};
131
132export const sortChannels = (channels) => {
133 // Include ALL channels, sorted by channel number - don't filter by EPG data

Callers 1

loadGuideDataFunction · 0.90

Calls 2

convertToMsFunction · 0.90
getGridMethod · 0.80

Tested by

no test coverage detected