diff --git a/src/plex/media/episode.ts b/src/plex/media/episode.ts index c1072e4c..74bc589d 100644 --- a/src/plex/media/episode.ts +++ b/src/plex/media/episode.ts @@ -25,7 +25,7 @@ export class PlexEpisodeFactory implements IMediaFactory { `Unsupported episode id for ${title} ${formatEpisode(season, episode)}: ${formatMediaIds(allIds)}`, ) } - if (!title || !season || !episode) { + if (!title || typeof season === "undefined" || typeof episode === "undefined") { throw new Error( `Invalid episode: ${title ?? ""} ${formatEpisode(season, episode)} (${id.toString()})`, )