Skip to content

Fill empty guide (XEPG) slots with dummy 'unknown' entries#5

Open
continue[bot] wants to merge 1 commit intomasterfrom
continue/fill-epg-guide-with-unknown
Open

Fill empty guide (XEPG) slots with dummy 'unknown' entries#5
continue[bot] wants to merge 1 commit intomasterfrom
continue/fill-epg-guide-with-unknown

Conversation

@continue
Copy link

@continue continue bot commented Jan 28, 2026

Summary

This PR implements a new configurable feature to fill empty slots in the EPG/XEPG guide with dummy 'Unknown' program entries, addressing issue #2.

Background

This is a workaround for Plex, which requires guide data to be present for all time slots to allow viewing channels. When EPG data is incomplete or has gaps, channels become unwatchable in Plex.

Changes

  • Added new setting: xepg.fill.gaps.with.dummy (default: false)

    • Disabled by default to maintain backward compatibility
    • Can be enabled via settings API or configuration
  • Gap Detection Logic: Implemented fillProgramGaps() function that:

    • Sorts programs by start time
    • Detects gaps between programs
    • Fills gaps from current time up to 4 days ahead
    • Handles initial gaps (before first program)
    • Handles gaps between programs
    • Handles trailing gaps (after last program)
  • Dummy Entry Generation: Implemented createUnknownPrograms() that:

    • Creates 3-hour time slot entries for gaps
    • Uses format: "Channel Name: Unknown" as title
    • Includes description: "No program information available for this time slot."
    • Optionally includes channel logo (when XepgReplaceMissingImages is enabled)

Configuration

To enable this feature, set the following in your settings:

{
  "xepg.fill.gaps.with.dummy": true
}

Related Issues

Closes #2
Related to xteve-project#161

Testing Notes

  • Feature is disabled by default, ensuring no impact on existing installations
  • When enabled, gaps in EPG data are automatically filled with dummy entries
  • Dummy entries are clearly labeled as "Unknown" to distinguish from real program data
  • Time slots are 3 hours by default to minimize the number of dummy entries

Co-authored-by: geoff-thornton github@geoffthornton.me


Continue Tasks: ▶️ 1 queued — View all

This commit implements a new configurable feature that fills empty slots
in the EPG/XEPG guide with dummy 'Unknown' program entries. This addresses
issue #2 and provides a workaround for Plex which requires guide data to
allow viewing channels.

Changes:
- Added new setting 'xepg.fill.gaps.with.dummy' (default: false)
- Implemented fillProgramGaps() function to detect gaps in program data
- Implemented createUnknownPrograms() to generate placeholder entries
- Dummy entries use format 'Channel Name: Unknown' as title
- Gaps are filled with 3-hour time slots
- Covers time range from current time to 4 days ahead
- Uses channel logo if XepgReplaceMissingImages is enabled

The feature is disabled by default to maintain backward compatibility
and can be enabled via the settings API.

Co-authored-by: geoff-thornton <github@geoffthornton.me>

Generated with [Continue](https://continue.dev)

Co-Authored-By: Continue <noreply@continue.dev>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fill empty guide (XEPG) slots with dummy 'unknown' entries

0 participants

Comments