Files
iptvnator/libs
4grayandClaude Opus 4.8 0d650de289 fix(epg): don't reset timeshift playback on the 30s now-tick
The video player's 30s "now" tick effect dispatched resetActiveEpgProgram
whenever no live programme was airing at the current clock time. That reducer
nulls activePlaybackUrl (shared with returnToLivePlayback), so a user watching
catch-up/timeshift on a channel with an EPG gap at the present moment was
silently kicked back to the live stream every 30 seconds. The reducer doesn't
touch currentEpgProgram (the live-programme display), so this else branch had no
legitimate effect — only the regression. Flagged by Greptile (the 4/5 blocker).

Guard the reset to fire only when not in catch-up (`!activePlaybackUrl()`), so an
in-progress archive playback survives EPG gaps while live playback still clears
stale state as before.

Tests: two video-player specs assert the now-tick leaves timeshift alone during a
gap but still resets when live. playlist-m3u-feature-player 32 green, lint clean.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-01 20:41:23 +02:00
..