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

Plex integration only selects oldest episode when sorting #135002

Open
glenviewjeff opened this issue Jan 7, 2025 · 1 comment
Open

Plex integration only selects oldest episode when sorting #135002

glenviewjeff opened this issue Jan 7, 2025 · 1 comment
Assignees

Comments

@glenviewjeff
Copy link

glenviewjeff commented Jan 7, 2025

The problem

Media player only plays oldest episode when sorting by addedAt:desc. This appears to be a bug in the plexapi Python library that this integration is using.

I tried reversing the sort and get the same results. And weirdly, I tried using the “addedAt>>” field, which would turn up no files unless I set it to over three years. The most recent episode was recorded today.

What version of Home Assistant Core has the issue?

core-2025.1.0

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Plex

Link to integration documentation on our website

https://www.home-assistant.io/integrations/plex/

Diagnostics information

No response

Example YAML snippet

action: media_player.play_media
data:
  media_content_id: >-
    {"library_name": "TV Shows", "title": "This Week With George
    Stephanopoulos","sort":"addedAt:desc","maxresults": 1}
  media_content_type: EPISODE
target:
  entity_id: media_player.plex_plex_for_android_tv_shield_kitchen

Anything in the logs that might be useful for us?

No response

Additional information

No response

@home-assistant
Copy link

home-assistant bot commented Jan 7, 2025

Hey there @jjlawren, mind taking a look at this issue as it has been labeled with an integration (plex) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of plex can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign plex Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


plex documentation
plex source
(message by IssueLinks)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants