mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-14 05:06:16 -08:00
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>