trakt-tools / universal-trakt-scrobbler

MIT License
547 stars 52 forks source link

Netflix - Not Identifying Season when name is Series #153

Closed tmowbrey closed 1 year ago

tmowbrey commented 2 years ago

Hello,

I noticed that for some collections, the term Series is used instead of Season (See The Midwife - https://www.netflix.com/title/70245163).

I think this has to do with the Netflix API (https://github.com/trakt-tools/universal-trakt-scrobbler/blob/master/src/services/netflix/NetflixApi.ts) on line 263 (const isCollection = !historyItem.seasonDescriptor.includes('Season');) is referencing a collection only by the static value "Season". I believe this needs to be updated to also include "Series" as part of the descriptor.

rafaelgomesxyz commented 2 years ago

I believe I've fixed it.

Please test the .zip files provided in the PR and confirm: https://github.com/trakt-tools/universal-trakt-scrobbler/pull/161