mirror of
https://github.com/movie-web/providers.git
synced 2025-09-13 15:33:26 +00:00
running sources/embeds + media input
This commit is contained in:
26
src/main/media.ts
Normal file
26
src/main/media.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
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;
|
Reference in New Issue
Block a user