Skip to content

Commit

Permalink
Fix special episodes
Browse files Browse the repository at this point in the history
  • Loading branch information
Thilas committed Feb 11, 2022
1 parent 61f2c8c commit 76f050f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plex/media/episode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export class PlexEpisodeFactory implements IMediaFactory<EpisodeMediaId> {
`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 ?? "<unknown title>"} ${formatEpisode(season, episode)} (${id.toString()})`,
)
Expand Down

0 comments on commit 76f050f

Please sign in to comment.