Add original name support for shows: implement API endpoint to set original name, update Show and ShowDto models to include original name field, and enhance UI components for managing original names in show metadata. Update validation and database schema accordingly.
This commit is contained in:
@@ -102,6 +102,7 @@ export type EpisodeDto = {
|
||||
export type ShowDto = {
|
||||
id: string
|
||||
name: string
|
||||
originalName: string | null
|
||||
kind: ShowKind
|
||||
description: string | null
|
||||
metadataProvider: string | null
|
||||
|
||||
@@ -152,6 +152,7 @@ const resources = {
|
||||
shows: {
|
||||
title: 'Шоу',
|
||||
name: 'Название',
|
||||
originalName: 'Оригинальное название (eng)',
|
||||
kind: 'Тип',
|
||||
kinds: { Series: 'Сериал', Single: 'Полнометражка' },
|
||||
seasons: 'Сезоны',
|
||||
@@ -268,6 +269,9 @@ const resources = {
|
||||
},
|
||||
metadata: {
|
||||
title: 'Метаданные',
|
||||
originalName: 'Оригинальное название (eng)',
|
||||
originalNamePlaceholder: 'Например: Family Guy',
|
||||
originalNameHint: 'По нему ищутся метаданные; на экранах показывается обычное название.',
|
||||
source: 'Источник',
|
||||
sourceLabel: 'Источник',
|
||||
searchPlaceholder: 'Название для поиска',
|
||||
@@ -437,6 +441,7 @@ const resources = {
|
||||
shows: {
|
||||
title: 'Shows',
|
||||
name: 'Name',
|
||||
originalName: 'Original name (eng)',
|
||||
kind: 'Kind',
|
||||
kinds: { Series: 'Series', Single: 'Movie' },
|
||||
seasons: 'Seasons',
|
||||
@@ -553,6 +558,9 @@ const resources = {
|
||||
},
|
||||
metadata: {
|
||||
title: 'Metadata',
|
||||
originalName: 'Original name (eng)',
|
||||
originalNamePlaceholder: 'e.g. Family Guy',
|
||||
originalNameHint: 'Metadata is looked up by this; screens still show the regular name.',
|
||||
source: 'Source',
|
||||
sourceLabel: 'Source',
|
||||
searchPlaceholder: 'Title to search',
|
||||
|
||||
Reference in New Issue
Block a user