Skip to content

Show current EPG program on channel tiles#404

Open
fjordnode wants to merge 1 commit intoFredolx:mainfrom
fjordnode:feat/inline-epg-now-playing
Open

Show current EPG program on channel tiles#404
fjordnode wants to merge 1 commit intoFredolx:mainfrom
fjordnode:feat/inline-epg-now-playing

Conversation

@fjordnode
Copy link

@fjordnode fjordnode commented Mar 14, 2026

Summary

  • Adds inline "now playing" EPG info on channel tiles for Xtream sources
  • Uses the get_short_epg Xtream API to fetch the current program, with automatic fallback to get_simple_data_table when short EPG returns empty
  • Displays the program title in blue below the channel name, replacing the source name when EPG data is available
  • Requests are batched and run concurrently (capped at 10 parallel) to avoid blocking the UI or flooding the API

Screenshots

image

How it works

  1. After the channel list loads, the frontend filters for Xtream livestream channels
  2. Calls a new get_now_playing_batch Tauri command with those channels
  3. Backend tries get_short_epg first for each stream, falls back to get_simple_data_table if empty
  4. Decodes base64 titles and returns a map of channel ID → current program title
  5. Channel tiles display the title when available, falling back to source name

Test plan

  • Tested with Xtream source — EPG titles display correctly on channel tiles
  • Fallback to full EPG works when short EPG returns empty
  • Verify no regression on M3U-only sources (should show source name as before)

🤖 Generated with Claude Code

Uses the Xtream get_short_epg API to fetch the currently playing program
for livestream channels and displays it inline on the channel tile,
replacing the source name when EPG data is available.

- Backend: new get_now_playing_batch command that fetches short EPG for
  multiple channels concurrently (semaphore-limited to 10 parallel requests)
- Frontend: fetches now-playing data after channel list loads and passes
  it to each channel tile component
- Now-playing text shown in blue (#8cb4ff) to distinguish from source name

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@CLAassistant
Copy link

CLAassistant commented Mar 14, 2026

CLA assistant check
All committers have signed the CLA.

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