Files
providers/src/main/media.ts
2023-08-25 22:29:50 +02:00

27 lines
439 B
TypeScript

export type CommonMedia = {
title: string;
releaseYear: number;
imbdId: string;
tmdbId: string;
};
export type MediaTypes = 'show' | 'movie';
export type ShowMedia = CommonMedia & {
type: 'show';
episode: {
number: number;
tmdbId: string;
};
season: {
number: number;
tmdbId: string;
};
};
export type MovieMedia = CommonMedia & {
type: 'movie';
};
export type ScrapeMedia = ShowMedia | MovieMedia;