Skip to content

Commit

Permalink
Fix error when Netflix is missing episode 'summary' field (trakt-tool…
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonMcKay authored Jan 6, 2023
1 parent eb0cea3 commit ff0bb77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/netflix/NetflixApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ class _NetflixApi extends ServiceApi {
// `hiddenEpisodeNumbers` is `true` for collections
// In this case, the episode should be searched by title instead of season and number,
// because the numbering differs between Netflix and Trakt.tv for collections
if (!historyItem.season?.summary.hiddenEpisodeNumbers) {
if (historyItem.season?.summary.hiddenEpisodeNumbers === false) {
season = historyItem.summary.season || 0;
number = historyItem.summary.episode || 0;
}
Expand Down

0 comments on commit ff0bb77

Please sign in to comment.