Fill empty guide (XEPG) slots with dummy 'unknown' entries#5
Open
continue[bot] wants to merge 1 commit intomasterfrom
Open
Fill empty guide (XEPG) slots with dummy 'unknown' entries#5continue[bot] wants to merge 1 commit intomasterfrom
continue[bot] wants to merge 1 commit intomasterfrom
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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)Gap Detection Logic: Implemented
fillProgramGaps()function that:Dummy Entry Generation: Implemented
createUnknownPrograms()that:XepgReplaceMissingImagesis 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
Co-authored-by: geoff-thornton github@geoffthornton.me
Continue Tasks:▶️ 1 queued — View all