dylandoamaral / trakt-integration

A Trakt integration for Home Assistant compatible with upcoming media card
MIT License
30 stars 12 forks source link

Added a fetch on hidden items to fix Trakt.tv API issue #52

Closed Anrolosia closed 1 year ago

Anrolosia commented 1 year ago

Trakt.tv API documentation states: By default, any hidden seasons will be removed from the response and stats. To include these and adjust the completion stats, set the hidden flag to true. Like you can see here: https://github.com/dylandoamaral/trakt-integration/blob/main/custom_components/trakt_tv/apis/trakt.py#L108 we're not specifying any value for that field, that means hidden seasons shouldn't be retrieved. But sadly it's the case. I'm fixing that by fetching user's hidden items first

dylandoamaral commented 1 year ago

Hi thank you for your support! Can you add a comment in the code about this trakt bug specificity ?

Otherwise we will surely forget why we did that ^^'

Anrolosia commented 1 year ago

@dylandoamaral Done :)