// Fetch EPG Data async function fetchEPG() { try { const response = await fetch('https://epg.guideus.tv'); const data = await response.json(); renderEPG(data); } catch (error) { console.error('Error fetching EPG:', error); document.getElementById('epg-container').innerHTML = `
Failed to load program guide. Please try again later.
No program information available at this time.
| Time | Program | Description |
|---|---|---|
| ${program.time} | ${program.title} | ${program.description || 'No description available'} |
Failed to load recent broadcasts. Please try again later.
No recent broadcasts available at this time.