Skip to content

Show the server-provided name for plugin tuner types#8235

Open
vk496 wants to merge 1 commit into
jellyfin:masterfrom
vk496:feature/tuner-host-type-name
Open

Show the server-provided name for plugin tuner types#8235
vk496 wants to merge 1 commit into
jellyfin:masterfrom
vk496:feature/tuner-host-type-name

Conversation

@vk496

@vk496 vk496 commented Jul 17, 2026

Copy link
Copy Markdown

Changes

The tuner device card resolves its title from a hardcoded type list (getTunerName) and shows "Unknown" for any type not in it, including plugin-provided tuners. This uses the display name returned by the TunerHosts/Types endpoint via a small useTunerHostTypes hook, keeping getTunerName as a fallback while the query loads.

A plugin can register an ITunerHost; it shows up by name in the "Add Tuner Device" dropdown, but once added the device card reads "Unknown". This makes the card match the dropdown.

Motivating case: https://github.com/vk496/jellyfin-htsp-tuner

Issues

Part of jellyfin/jellyfin#17372. The guide provider list has the same limitation but needs a new API, proposed in jellyfin/jellyfin#17371.

Code assistance


  • I have read and followed the contributing guidelines.
  • I have tested these changes.
  • I have verified that this is not duplicating changes in an existing PR.
  • I have provided a substantive review of another web PR.

The tuner device card resolves its title from a hardcoded type list and shows
Unknown for any type not in it, including plugin-provided tuners. Use the name
returned by the TunerHosts/Types endpoint, keeping the static list as a fallback.
@vk496
vk496 requested a review from a team as a code owner July 17, 2026 19:11
@sonarqubecloud

Copy link
Copy Markdown

@vk496

vk496 commented Jul 17, 2026

Copy link
Copy Markdown
Author

Verified against a live server: TunerHosts/Types returns { Id: "htsp", Name: "HTSP Tuner" } and the added tuner has no FriendlyName, so the card title resolves to "HTSP Tuner" instead of "Unknown". Production build succeeds with the change compiled into the Live TV chunk.

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.

1 participant