Skip to content

EPG: re-sync the guide when a match links a catch-up channel - #380

Closed
Sekator778 wants to merge 1 commit into
ahXN00:mainfrom
Sekator778:fix/archive-kept-after-auto-match
Closed

Sekator778 wants to merge 1 commit into
ahXN00:mainfrom
Sekator778:fix/archive-kept-after-auto-match

Conversation

@Sekator778

@Sekator778 Sekator778 commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

With empty tvg-id the first sync keeps only 6 h of past, since no catch-up channel has a guide id yet; after Auto-match the archive stays empty until a manual Re-sync. A match that links a catch-up channel to a new guide id now schedules one re-sync, as Settings does.

Defect seen on a Philips Android 11 TV; the fix is untested on devices.

PR checklist

  • I read the User Guide and checked the app's Settings and existing functions — this change isn't already possible in the app.
  • I searched existing issues/PRs and this isn't a duplicate.

On a playlist with empty tvg-id the first guide sync runs before any channel
has a guide id. Core's retention then sees no catch-up guide ids and keeps
only the recent past (6 h), so after Auto-match the catch-up channels show
no past days although the feed carries them. Settings' Re-sync brought
them back (measured: 210k to 320k programmes).

A match that gives a catch-up channel a guide id that was not retained
before (Auto-match, Accept, Accept all, a manual match) now schedules one
re-sync of the EPG sources and the playlist's own guides, through the same
EpgSyncScheduler entry Settings uses. Calls within 4 s share one run; one
that arrives during a run gets one more run after it. While a re-sync is
queued, the cache fill's network fallback is skipped so feeds are not
downloaded twice. A match that links no new catch-up guide triggers nothing.

Verified: :app:compileStandardReleaseKotlin and the i18n checks. The defect
and the Re-sync workaround were seen on a Philips Android 11 TV with an
M3U playlist of 877 catch-up channels.

Not tested on a device: this change itself (the TV setup was not reset).
@ahXN00 ahXN00 self-assigned this Nov 21, 2026
ahXN00 added a commit that referenced this pull request Nov 21, 2026
…, Flussonic and guide matches

- The Add/Edit playlist form shows "Prefer HLS for catch-up" for M3U as well
  as Xtream, and the M3U add (Settings and the setup wizard) and edit paths
  pass it to core. On M3U it changes only Flussonic catch-up: a finished
  programme opens as a seekable HLS playlist with its full length.
- User Guide: the switch is no longer "Xtream only".
- CHANGELOG: the Archive page (community PR #379), Flussonic catch-up
  (community PR #93) and guide matches filling their past days (reported in
  PR #380).

Verified: assembleDebug against core.
@ahXN00

ahXN00 commented Nov 22, 2026

Copy link
Copy Markdown
Owner

@Sekator778 i already did it beause of someone's report, so closing it

@ahXN00 ahXN00 closed this Nov 22, 2026
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.

2 participants