Show "Starts in X min" in Emby for a game on the lineup before kickoff #80
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
cmoriarty/sports-breaker#80
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Seen 2026-11-01 at 21:19 UTC: Emby's Live TV row showed three games. The two that had started each showed a game time. Dolphins vs. Patriots, which was already on the ready lineup, showed nothing.
Why: the guide (
build_guidein backend/app/feed.py) gives each game one programme, from kickoff to kickoff + 3 h. The Dolphins programme starts at 21:25 UTC, so before that the channel has no current programme, and Emby has no title or time to show for it:Asked for: a channel on the lineup before kickoff shows "Starts at 4:25 PM" in Emby.
Proposed: add a pre-game programme to the guide that runs from the start of the guide window (or the time the game was listed) up to kickoff. Its title is "Dolphins vs. Patriots — Starts at 4:25 PM", or the matchup as the title with "Starts at 4:25 PM" as the sub-title or description. The game's own programme then starts at kickoff as it does now.
Details to settle
Notes on the time zone:
+0000), and Emby converts them to the household's time itself.TZ=America/New_Yorkbelongs to the flaresolverr service. games.py hard-codes America/New_York, but only to match ESPN's dates.Emby's Live Sports row, 2026-11-01:
Revised proposal: a pre-game programme from the time the game joins the lineup up to kickoff.
TZ=America/New_Yorkon the sports-breaker service (it has none today) and format kickoff in local time. Fall back to the range alone when TZ is unset.Decision (Chris, 2026-11-01): no time zone. The pre-game entry says "Starts in X min".
Staleness: Emby reads the guide only on a refresh, so one programme titled "Starts in 20 min" would keep saying that until the next one. The fix is to cut the pre-game time into slices of their own in the guide:
Check: the slices line up with kickoff, the last slice ends exactly at it, and Emby's card counts down without a refresh.
Show "Starts at <time>" in Emby for a game on the lineup before kickoffto Show "Starts in X min" in Emby for a game on the lineup before kickoff