feat(live): show language-scoped stream variants
Keep live stream variant expansion scoped to the selected language while preserving the legacy all-language variants response when no language is provided. Display projected current EPG programme data in live rows and distinguish selected streams from actively playing streams in the collapsed variant UI. Refs #43 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@ -101,13 +101,14 @@ const API = {
|
||||
params.set('page', String(Math.floor(offset / limit) + 1));
|
||||
return API.request('GET', `/live/channels?${params.toString()}`);
|
||||
},
|
||||
getChannelVariants: (logicalChannelId, { includeHidden = false, limit = 100, offset = 0 } = {}) => {
|
||||
getChannelVariants: (logicalChannelId, { includeHidden = false, language = '', limit = 100, offset = 0 } = {}) => {
|
||||
const params = new URLSearchParams({
|
||||
includeHidden: String(Boolean(includeHidden)),
|
||||
limit: String(limit),
|
||||
offset: String(offset),
|
||||
page: String(Math.floor(offset / limit) + 1)
|
||||
});
|
||||
if (language) params.set('language', language);
|
||||
return API.request('GET', `/live/channels/${encodeURIComponent(logicalChannelId)}/variants?${params.toString()}`);
|
||||
},
|
||||
checkNewStreams: () => API.request('POST', '/live/projection/check-new'),
|
||||
|
||||
Reference in New Issue
Block a user