mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-01-23 10:45:27 +00:00
additional logging for troubleshooting
This commit is contained in:
parent
c8451903f9
commit
eec6e06b1d
1 changed files with 6 additions and 0 deletions
|
|
@ -60,12 +60,18 @@ const TVChannelGuide = ({ startDate, endDate }) => {
|
|||
|
||||
useEffect(() => {
|
||||
const fetchPrograms = async () => {
|
||||
console.log('Fetching program grid...');
|
||||
const programs = await API.getGrid();
|
||||
console.log(`Received ${programs.length} programs`);
|
||||
const programIds = [...new Set(programs.map((prog) => prog.tvg_id))];
|
||||
console.log('program tvg-ids');
|
||||
console.log(programIds);
|
||||
const filteredChannels = channels.filter((ch) =>
|
||||
programIds.includes(ch.tvg_id)
|
||||
);
|
||||
console.log(
|
||||
`found ${filteredChannels.length} channels with matching tvg-ids`
|
||||
);
|
||||
console.log(filteredChannels);
|
||||
setGuideChannels(filteredChannels);
|
||||
setActiveChannels(guideChannels.map((channel) => channel.channel_name));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue