Implement episode metadata management: add functionality to refresh episode metadata from external sources, including new API endpoints and UI integration. Enhance Show and Episode models to support additional metadata fields, and update database schema accordingly. Update ShowDetail and ShowMetadataCard components to display refreshed episode information and provide user feedback on metadata updates.
This commit is contained in:
@@ -91,6 +91,12 @@ export type EpisodeDto = {
|
||||
assetName: string | null
|
||||
assetStatus: MediaAssetStatus | null
|
||||
durationSeconds: number | null
|
||||
season: number | null
|
||||
episode: number | null
|
||||
title: string | null
|
||||
overview: string | null
|
||||
hasStill: boolean
|
||||
airDate: string | null
|
||||
}
|
||||
|
||||
export type ShowDto = {
|
||||
@@ -200,4 +206,24 @@ export type ScheduleEntryDto = {
|
||||
}
|
||||
|
||||
// ── Публичный эфир ─────────────────────────────────────────────────────────
|
||||
export type PublicChannelDto = { id: string; slug: string; name: string }
|
||||
export type PublicChannelDto = {
|
||||
id: string
|
||||
slug: string
|
||||
name: string
|
||||
currentShowId: string | null
|
||||
currentShowName: string | null
|
||||
currentShowHasPoster: boolean
|
||||
}
|
||||
|
||||
export type PublicEpgEntryDto = {
|
||||
kind: ScheduleEntryKind
|
||||
startsAtUtc: string
|
||||
endsAtUtc: string
|
||||
showId: string | null
|
||||
showName: string | null
|
||||
showHasPoster: boolean
|
||||
episodeId: string | null
|
||||
episodeTitle: string | null
|
||||
episodeOverview: string | null
|
||||
episodeHasStill: boolean
|
||||
}
|
||||
|
||||
@@ -273,6 +273,9 @@ const resources = {
|
||||
clear: 'Очистить',
|
||||
uploadPoster: 'Загрузить постер',
|
||||
noPoster: 'Нет постера',
|
||||
refreshEpisodes: 'Обновить серии',
|
||||
refreshing: 'Обновляем…',
|
||||
refreshedCount: 'Обновлено серий: {{count}}',
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -548,6 +551,9 @@ const resources = {
|
||||
clear: 'Clear',
|
||||
uploadPoster: 'Upload poster',
|
||||
noPoster: 'No poster',
|
||||
refreshEpisodes: 'Refresh episodes',
|
||||
refreshing: 'Refreshing…',
|
||||
refreshedCount: 'Episodes updated: {{count}}',
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user