fix(lg): decode the base64+zlib schedulelist payload - #64
Merged
Conversation
LG now serves the catalog as base64 of a zlib stream under text/plain, so res.json() threw and every sync fell back to the offline snapshot. That fallback skips both channel pruning and the self-EPG (syncLive gates each on result.live), so the LG guide had gone unwritten since ~2026-06-27. parseSchedulelist sniffs JSON vs base64+zlib/gzip, so an LG rollback needs no code change; inflate is bounded by a 64MB guard. Both callers (listChannels and syncLgEpg) share the one fetch point, so this covers each. Also: a missing EPG crosswalk addon (ENOENT) now logs at info rather than warn — it's the documented steady state for the 13 sources whose addon is wired but uncommitted, and the warning was burying real ones. A present-but-corrupt file still warns. Snapshot rebuilt live: 200 -> 194 rows (17 gone, 11 new).
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.
LG now serves the catalog as base64 of a zlib stream under text/plain, so res.json() threw and every sync fell back to the offline snapshot. That fallback skips both channel pruning and the self-EPG (syncLive gates each on result.live), so the LG guide had gone unwritten since ~2026-06-27.
parseSchedulelist sniffs JSON vs base64+zlib/gzip, so an LG rollback needs no code change; inflate is bounded by a 64MB guard. Both callers (listChannels and syncLgEpg) share the one fetch point, so this covers each.
Also: a missing EPG crosswalk addon (ENOENT) now logs at info rather than warn — it's the documented steady state for the 13 sources whose addon is wired but uncommitted, and the warning was burying real ones. A present-but-corrupt file still warns.
Snapshot rebuilt live: 200 -> 194 rows (17 gone, 11 new).