Closed JacksonMcKay closed 1 year ago
Note this is a fairly naive solution, it's not explicitly checking if anything is missing but it works
Note this is a fairly naive solution, it's not explicitly checking if anything is missing but it works
How can I apply this correction?
Probably resolves #235 too
Resolves #202 and #207.
When a show is removed from Netflix it no longer returns the
summary
field and the extension throws an error likeTypeError: Cannot read properties of undefined (reading 'season')
on the following line:https://github.com/trakt-tools/universal-trakt-scrobbler/blob/eb0cea31f9f510cee4e0f134380bdcee2820a375/src/services/netflix/NetflixApi.ts#L332
In my case, the show A.P. Bio was the cause of the issue as it has been removed from Netflix.
The
historyItem
looked like this in my case:The code change: When
historyItem.season
was undefined the whole expression became!undefined
which is always true. Added an explicit=== false
comparison to resolve this.With this change I was able to sync episodes of the offending show like nothing ever happened.