fix: add manual imdb -> tmdb mapping for "Monsters: The Lyle and Erik Menendez Story (2024)"
This commit is contained in:
parent
c88b3798f0
commit
1a56d7ef91
2 changed files with 8 additions and 0 deletions
|
|
@ -48,6 +48,10 @@ describe('getTmdbIdFromImdbId', () => {
|
|||
await expect(getTmdbIdFromImdbId(ctx, fetcher, new ImdbId('tt12345678', 1, 1))).rejects.toThrow('Could not get TMDB ID of IMDb ID "tt12345678"');
|
||||
});
|
||||
|
||||
test('Monsters: The Lyle and Erik Menendez Story (2024)', async () => {
|
||||
expect(await getTmdbIdFromImdbId(ctx, fetcher, new ImdbId('tt13207736', 2, 2))).toStrictEqual(new TmdbId(225634, 1, 2));
|
||||
});
|
||||
|
||||
test('Monster: The Ed Gein Story (2025)', async () => {
|
||||
expect(await getTmdbIdFromImdbId(ctx, fetcher, new ImdbId('tt13207736', 3, 2))).toStrictEqual(new TmdbId(286801, 1, 2));
|
||||
});
|
||||
|
|
|
|||
|
|
@ -68,6 +68,10 @@ const tmdbFetch = async (ctx: Context, fetcher: Fetcher, path: string, searchPar
|
|||
const imdbTmdbMap = new Map<string, number>();
|
||||
export const getTmdbIdFromImdbId = async (ctx: Context, fetcher: Fetcher, imdbId: ImdbId): Promise<TmdbId> => {
|
||||
// Manual mismatch fixes
|
||||
if (imdbId.id === 'tt13207736' && imdbId.season === 2) {
|
||||
// Monsters: The Lyle and Erik Menendez Story (2024)
|
||||
return new TmdbId(225634, imdbId.season - 1, imdbId.episode);
|
||||
}
|
||||
if (imdbId.id === 'tt13207736' && imdbId.season === 3) {
|
||||
// Monster: The Ed Gein Story (2025)
|
||||
return new TmdbId(286801, imdbId.season - 2, imdbId.episode);
|
||||
|
|
|
|||
Loading…
Reference in a new issue