mirror of https://github.com/morpheus65535/bazarr
77 lines
1.4 KiB
TypeScript
77 lines
1.4 KiB
TypeScript
|
namespace FormType {
|
||
|
interface ModifyItem {
|
||
|
id: number[];
|
||
|
profileid: (number | null)[];
|
||
|
}
|
||
|
|
||
|
type SeriesAction = OneSerieAction | SearchWantedAction;
|
||
|
|
||
|
type MoviesAction = OneMovieAction | SearchWantedAction;
|
||
|
|
||
|
interface OneMovieAction {
|
||
|
action: "search-missing" | "scan-disk";
|
||
|
radarrid: number;
|
||
|
}
|
||
|
|
||
|
interface OneSerieAction {
|
||
|
action: "search-missing" | "scan-disk";
|
||
|
seriesid: number;
|
||
|
}
|
||
|
|
||
|
interface SearchWantedAction {
|
||
|
action: "search-wanted";
|
||
|
}
|
||
|
|
||
|
interface Subtitle {
|
||
|
language: string;
|
||
|
hi: boolean;
|
||
|
forced: boolean;
|
||
|
}
|
||
|
|
||
|
interface UploadSubtitle extends Subtitle {
|
||
|
file: File;
|
||
|
}
|
||
|
|
||
|
interface DeleteSubtitle extends Subtitle {
|
||
|
path: string;
|
||
|
}
|
||
|
|
||
|
interface ModifySubtitle {
|
||
|
id: number;
|
||
|
type: "episode" | "movie";
|
||
|
language: string;
|
||
|
path: string;
|
||
|
}
|
||
|
|
||
|
interface DownloadSeries {
|
||
|
episodePath: string;
|
||
|
sceneName?: string;
|
||
|
language: string;
|
||
|
hi: boolean;
|
||
|
forced: boolean;
|
||
|
sonarrSeriesId: number;
|
||
|
sonarrEpisodeId: number;
|
||
|
title: string;
|
||
|
}
|
||
|
|
||
|
interface AddBlacklist {
|
||
|
provider: string;
|
||
|
subs_id: string;
|
||
|
language: LanguageCodeType;
|
||
|
subtitles_path: string;
|
||
|
}
|
||
|
|
||
|
interface DeleteBlacklist {
|
||
|
provider: string;
|
||
|
subs_id: string;
|
||
|
}
|
||
|
|
||
|
interface ManualDownload {
|
||
|
language: string;
|
||
|
hi: PythonBoolean;
|
||
|
forced: PythonBoolean;
|
||
|
provider: string;
|
||
|
subtitle: any;
|
||
|
}
|
||
|
}
|