home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
72.27k stars 30.24k forks source link

Plex `media_player.play_media` is somehow playing media from outside of the specified library #66885

Closed zinefer closed 2 years ago

zinefer commented 2 years ago

The problem

When sorting my TV Shows library and trying to play a single episode, plex instead begins playing The Other Two - S1E1 - Pilot, January 24, 2019 (some sort of E-News program?) which does not exist in any of my libraries. Is this somehow pulling in the Web Shows library? Shouldn't this be playing the newest episode and not one from 2019?

What version of Home Assistant Core has the issue?

core-2022.2.9

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Supervised

Integration causing the issue

Plex

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

service: media_player.play_media
data:
  entity_id: media_player.plex_plex_for_roku_den_roku
  media_content_id: >-
    { "library_name": "TV Shows", "sort": "addedAt:desc", "maxresults": 1 }
  media_content_type: EPISODE


### Anything in the logs that might be useful for us?

_No response_

### Additional information

_No response_
zinefer commented 2 years ago

I am an idiot.