mirror of
https://github.com/fallenbagel/jellyseerr.git
synced 2026-01-03 05:09:43 -05:00
fix(watchlist): handle undefined Guid for Plex watchlist metadata (#1914)
This commit is contained in:
@@ -113,7 +113,7 @@ interface MetadataResponse {
|
|||||||
ratingKey: string;
|
ratingKey: string;
|
||||||
type: 'movie' | 'show';
|
type: 'movie' | 'show';
|
||||||
title: string;
|
title: string;
|
||||||
Guid: {
|
Guid?: {
|
||||||
id: `imdb://tt${number}` | `tmdb://${number}` | `tvdb://${number}`;
|
id: `imdb://tt${number}` | `tmdb://${number}` | `tvdb://${number}`;
|
||||||
}[];
|
}[];
|
||||||
}[];
|
}[];
|
||||||
@@ -334,10 +334,10 @@ class PlexTvAPI extends ExternalAPI {
|
|||||||
|
|
||||||
const metadata = detailedResponse.MediaContainer.Metadata[0];
|
const metadata = detailedResponse.MediaContainer.Metadata[0];
|
||||||
|
|
||||||
const tmdbString = metadata.Guid.find((guid) =>
|
const tmdbString = metadata.Guid?.find((guid) =>
|
||||||
guid.id.startsWith('tmdb')
|
guid.id.startsWith('tmdb')
|
||||||
);
|
);
|
||||||
const tvdbString = metadata.Guid.find((guid) =>
|
const tvdbString = metadata.Guid?.find((guid) =>
|
||||||
guid.id.startsWith('tvdb')
|
guid.id.startsWith('tvdb')
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user