feat: add home page with favorites, resume playback, recently added VOD

This commit is contained in:
Trevor Mears
2026-01-18 14:04:40 -08:00
parent bf111e1fca
commit b890d30253
4 changed files with 211 additions and 9 deletions
+9
View File
@@ -12,6 +12,15 @@ class GuidePage {
}
async show() {
// Ensure channel data is loaded before rendering EPG
// This fixes a race condition where navigating directly to the Guide page
// before visiting Live TV would result in an empty EPG.
const channelList = this.app.channelList;
if (!channelList.channels || channelList.channels.length === 0) {
await channelList.loadSources();
await channelList.loadChannels();
}
// Only load EPG data if not already loaded
if (!this.app.epgGuide.programmes || this.app.epgGuide.programmes.length === 0) {
await this.app.epgGuide.loadEpg();