Remove duplicate Language interface

This commit is contained in:
Bogdan 2023-08-25 04:22:40 +03:00
parent feb3131ad4
commit bbef1590a3
3 changed files with 5 additions and 7 deletions

View File

@ -4,7 +4,8 @@ import ImdbRating from 'Components/ImdbRating';
import RottenTomatoRating from 'Components/RottenTomatoRating'; import RottenTomatoRating from 'Components/RottenTomatoRating';
import TmdbRating from 'Components/TmdbRating'; import TmdbRating from 'Components/TmdbRating';
import { icons } from 'Helpers/Props'; import { icons } from 'Helpers/Props';
import { Language, Ratings } from 'Movie/Movie'; import Language from 'Language/Language';
import { Ratings } from 'Movie/Movie';
import QualityProfile from 'typings/QualityProfile'; import QualityProfile from 'typings/QualityProfile';
import formatDateTime from 'Utilities/Date/formatDateTime'; import formatDateTime from 'Utilities/Date/formatDateTime';
import getRelativeDate from 'Utilities/Date/getRelativeDate'; import getRelativeDate from 'Utilities/Date/getRelativeDate';

View File

@ -1,4 +1,5 @@
import ModelBase from 'App/ModelBase'; import ModelBase from 'App/ModelBase';
import Language from 'Language/Language';
import { MovieFile } from 'MovieFile/MovieFile'; import { MovieFile } from 'MovieFile/MovieFile';
export interface Image { export interface Image {
@ -7,11 +8,6 @@ export interface Image {
remoteUrl: string; remoteUrl: string;
} }
export interface Language {
id: number;
name: string;
}
export interface Collection { export interface Collection {
title: string; title: string;
} }

View File

@ -1,4 +1,5 @@
import ModelBase from 'App/ModelBase'; import ModelBase from 'App/ModelBase';
import Language from 'Language/Language';
import { QualityModel } from 'Quality/Quality'; import { QualityModel } from 'Quality/Quality';
import CustomFormat from 'typings/CustomFormat'; import CustomFormat from 'typings/CustomFormat';
import MediaInfo from 'typings/MediaInfo'; import MediaInfo from 'typings/MediaInfo';
@ -11,7 +12,7 @@ export interface MovieFile extends ModelBase {
dateAdded: string; dateAdded: string;
sceneName: string; sceneName: string;
releaseGroup: string; releaseGroup: string;
languages: CustomFormat[]; languages: Language[];
quality: QualityModel; quality: QualityModel;
customFormats: CustomFormat[]; customFormats: CustomFormat[];
mediaInfo: MediaInfo; mediaInfo: MediaInfo;