Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Exclude watched from results #53

Closed
DenielTorres opened this issue Feb 6, 2021 · 4 comments
Closed

[Feature Request] Exclude watched from results #53

DenielTorres opened this issue Feb 6, 2021 · 4 comments
Labels
enhancement New feature or request

Comments

@DenielTorres
Copy link

DenielTorres commented Feb 6, 2021

Is your feature request related to a problem? Please describe.
When setting hide_unflagged in the upcoming_media_card component it grabs the first X number of movies and then filters out the watched elements. Causing the list to be always shorter than the set number. Similar functionality has been implemented with the Kodi component.

Describe the solution you'd like
It would be great if this component could already send a differentiator between flagged and not flagged items. Like here: boralyl/kodi-recently-added#4

@DenielTorres DenielTorres added the enhancement New feature or request label Feb 6, 2021
@maykar maykar changed the title [Feature Request] [Feature Request] Exclude watched from results Mar 4, 2021
@pimp1310
Copy link

any progress here?

@pimp1310
Copy link

nothing?

@pimp1310
Copy link

pimp1310 commented May 22, 2022

i get it over a second sensor to work, now i only see the unwatched movies

add this template sensor to your configuration.yaml

  • platform: template
    sensors:
    plex_unwatched:
    value_template: "{{ states('sensor.plex_recently_added_movies') }}"
    attribute_templates:
    data: "{{ state_attr('sensor.plex_recently_added_movies', 'data') | selectattr('flag', 'defined') | selectattr('flag', 'eq', true) | list }}"

then give the widget the new sensor : sensor.plex_unwatched

and now you only have the unwatched movies in this example.

@mkanet
Copy link
Collaborator

mkanet commented May 30, 2024

The latest official/original Upcoming Media Card offers the ability to list the watched shows, or filter/sort by any attribute. You can do this now with any Integration that Upcoming Media Card supports.

@mkanet mkanet closed this as completed May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants