dylandoamaral / trakt-integration

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

Hidden shows showing up in 'next to watch' sensor #95

Closed Lackmake closed 3 months ago

Lackmake commented 4 months ago

I just added your integration and configured it successfully, thanks for the work. However the sensor i setup behaves differently than i expected. In my configuration i wrote exactly this:

trakt_tv:
  language: de # Prefered language for movie/show title
  timezone: Europe/Berlin # Prefered timezone
  sensors:
    next_to_watch:
      only_aired:
        max_medias: 5
        exclude:
          - hidden

My goal was to replicate the list trakt.tv is showing on my dashboard, which are the shows i am currently watching with their respective first unwatched/next-up episode for me. I have many shows hidden on trakt.tv which do not show up on the next-up section on trakt, but do show up in the sensor unfortunately.

You even mentioned the trakt-hide function in the description thats why i thought it would work like this:

You can also use the Trakt.tv "hidden" function to hide a show from your calendar or the progress page

Did i misunderstand, misconfigured or is this not working as expected?

dylandoamaral commented 4 months ago

This feature was made by @Anrolosia maybe he can gives you more information !

Anrolosia commented 4 months ago

Hello there! Not sure there is a bug here, because first the configuration you provided is not correct, check the documentation, exclude is supposed to be an array of slugs image

Also, every show you have listed in https://trakt.tv/settings/hidden shouldn't appear with this module, there is a fetch of that list (but there is also some caching, maybe this is why) https://github.com/dylandoamaral/trakt-integration/blob/main/custom_components/trakt_tv/apis/trakt.py#L142-L162