Enhance ShowDetail component: display season and episode information alongside asset names in a more structured format, improving user experience. Update AirPage to simplify program labels by removing episode index display, ensuring clarity in the streaming interface.
This commit is contained in:
@@ -167,7 +167,7 @@ function splitEpg(entries: ScheduleEntryDto[]) {
|
||||
}
|
||||
|
||||
function programLabel(entry: ScheduleEntryDto, t: (key: string) => string) {
|
||||
// На странице эфира — только название шоу (сезон/серия видны в админке).
|
||||
if (entry.kind === 'Ad') return t('air.ad')
|
||||
const name = entry.showName ?? '—'
|
||||
return entry.episodeIndex != null ? `${name} · ${t('air.episode')} ${entry.episodeIndex + 1}` : name
|
||||
return entry.showName ?? '—'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user