|
|
@ -19,6 +19,13 @@ export class PlexMovie extends BaseEntity |
|
|
|
return (await PlexMovie.findOne({ where: { tmdbId } }))?.plexKey ?? null; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Check if the given movie exists on Plex |
|
|
|
*/ |
|
|
|
public static async exists(tmdbId: number|string) { |
|
|
|
return (await PlexMovie.count({ where: { tmdbId } })) > 0; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Get the set of IMDb IDs stored in the library |
|
|
|
*/ |
|
|
|