Each channel carries a stable channel number in the playlist #42

Closed
opened 2026-10-29 17:46:03 -04:00 by cmoriarty · 1 comment
Owner

Why

Neither Emby nor Jellyfin keeps the playlist's tvg-id on a channel (checked 2026-10-29 on Jellyfin 12.3.0 and Emby 4.10.2). A media-server session watching a channel can therefore only be matched to its game by the channel's name. A tvg-chno per game becomes the channel's number on both servers (ChannelNumber on the session's NowPlayingItem). That gives later work, such as notices sent to the TV or a Now watching page, an exact key.

What Changes

  • Every channel in /playlist.m3u carries tvg-chno.
  • How a number is assigned: when the game is first listed, in ascending order by start time.
  • How long it lasts: the game's whole life, through tuner refreshes and app restarts (kept under the data directory). A number is not reused while its game is listed.
  • The guide order: both servers sort the guide by channel number, so the numbering decides the order. Keep it close to today's (live first, then by start time) and check what each server shows.

Done when both servers show each game's channel number, a session watching a channel carries it, and a game keeps its number across a tuner refresh and an app restart.

## Why Neither Emby nor Jellyfin keeps the playlist's `tvg-id` on a channel (checked 2026-10-29 on Jellyfin 12.3.0 and Emby 4.10.2). A media-server session watching a channel can therefore only be matched to its game by the channel's name. A `tvg-chno` per game becomes the channel's number on both servers (`ChannelNumber` on the session's `NowPlayingItem`). That gives later work, such as notices sent to the TV or a Now watching page, an exact key. ## What Changes - Every channel in `/playlist.m3u` carries `tvg-chno`. - **How a number is assigned:** when the game is first listed, in ascending order by start time. - **How long it lasts:** the game's whole life, through tuner refreshes and app restarts (kept under the data directory). A number is not reused while its game is listed. - **The guide order:** both servers sort the guide by channel number, so the numbering decides the order. Keep it close to today's (live first, then by start time) and check what each server shows. **Done when** both servers show each game's channel number, a session watching a channel carries it, and a game keeps its number across a tuner refresh and an app restart.
Author
Owner

Closing: seen live 2026-10-30. Both Emby sessions on UCF vs. Baylor carried ChannelNumber 60, the game's tvg-chno.

Closing: seen live 2026-10-30. Both Emby sessions on UCF vs. Baylor carried `ChannelNumber` 60, the game's `tvg-chno`.
Sign in to join this conversation.
No labels
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
cmoriarty/sports-breaker#42
No description provided.