From 36c7c79b9eec11a50a46dc1a40caad0e7b5a2fea Mon Sep 17 00:00:00 2001 From: Bogdan Date: Fri, 25 Aug 2023 04:22:40 +0300 Subject: [PATCH] Remove duplicate Language interface --- frontend/src/EpisodeFile/EpisodeFile.ts | 3 ++- frontend/src/Series/Series.ts | 6 +----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/frontend/src/EpisodeFile/EpisodeFile.ts b/frontend/src/EpisodeFile/EpisodeFile.ts index 85e545a64..a3ea2bed4 100644 --- a/frontend/src/EpisodeFile/EpisodeFile.ts +++ b/frontend/src/EpisodeFile/EpisodeFile.ts @@ -1,4 +1,5 @@ import ModelBase from 'App/ModelBase'; +import Language from 'Language/Language'; import { QualityModel } from 'Quality/Quality'; import CustomFormat from 'typings/CustomFormat'; import MediaInfo from 'typings/MediaInfo'; @@ -12,7 +13,7 @@ export interface EpisodeFile extends ModelBase { dateAdded: string; sceneName: string; releaseGroup: string; - languages: CustomFormat[]; + languages: Language[]; quality: QualityModel; customFormats: CustomFormat[]; mediaInfo: MediaInfo; diff --git a/frontend/src/Series/Series.ts b/frontend/src/Series/Series.ts index 32b584cc0..0e54aff84 100644 --- a/frontend/src/Series/Series.ts +++ b/frontend/src/Series/Series.ts @@ -1,4 +1,5 @@ import ModelBase from 'App/ModelBase'; +import Language from 'Language/Language'; export type SeriesType = 'anime' | 'daily' | 'standard'; @@ -8,11 +9,6 @@ export interface Image { remoteUrl: string; } -export interface Language { - id: number; - name: string; -} - export interface Statistics { seasonCount: number; episodeCount: number;