running sources/embeds + media input

This commit is contained in:
mrjvs
2023-08-25 22:29:50 +02:00
parent ffe5cf5369
commit 59b2aa22f7
8 changed files with 119 additions and 14 deletions

26
src/main/media.ts Normal file
View 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;