Fix HDHomeRun channels missing from lineup and ffmpeg processes spawning on startup#97
Draft
Fix HDHomeRun channels missing from lineup and ffmpeg processes spawning on startup#97
Conversation
Co-authored-by: cbulock <176519+cbulock@users.noreply.github.com> Agent-Logs-Url: https://github.com/cbulock/iptv-proxy/sessions/4850a1bd-cf73-492a-93b8-29cef30fa200
Copilot
AI
changed the title
[WIP] Fix HDHomeRun channels loading issue
Fix HDHomeRun channels missing from lineup and ffmpeg processes spawning on startup
Mar 22, 2026
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.
HDHomeRun channels were being filtered out of
/lineup.jsonand/lineup.m3uunless explicitly added to the channel map. Separately, the startup health check was opening live stream connections to every HDHomeRun channel URL, causing the tuner device to start transcoding (ffmpeg) for each channel concurrently.Changes
HDHomeRun channels always included in lineup (
server/lineup.js)isChannelMapped()gated all channels behindchannel-map.yaml. HDHomeRun channels come from the tuner's own curated lineup and need no explicit mapping entry.Health check uses device discovery, not stream probing (
scripts/check-channel-health.js)The health check was issuing a GET to each channel's stream URL (e.g.
http://192.168.1.100:5004/auto/v5.1), which triggers the HDHomeRun device to start video transcoding for every channel on every check. HDHomeRun channels are now checked with a singleGET /discover.jsonper device — all channels on a responsive device are marked online, no streams opened.Tests
test/integration/lineup.test.js— two new cases confirm HDHomeRun channels appear in both/lineup.jsonand/lineup.m3uwithoutinclude_unmapped.test/unit/check-channel-health.test.js— three new cases verify device-level discovery is used (not stream URLs), offline device marks channels offline, and mixed HDHomeRun + M3U channel sets are handled correctly.🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.