Open amccook opened 2 weeks ago
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!
(message by CodeOwnersMention)
plex documentation plex source (message by IssueLinks)
Giving this a little nudge :) Any additional information I can provide to help resolve?
The problem
TL;DR
HA getting stuck on Playlists in Plex that do not have "playlistType" defined. An example of such a playlist is a "directory" that has been imported into Plex via iTunes Plugin. Need to add some logic to skip over playlists that have
"type": "directory"
.Details:
Trying to browse/play Plex Media via HA and unable to do so.
When browsing media from Plex an "Unknown Error" occurs.
Logs show:
'Tag' object has no attribute 'playlistType'
.Manually ran API calls to Plex to verify which playlists are missing the attribute
playlistType
.curl -L -X GET 'http://<My-Plex-IP>:32400/playlists' -H 'Accept: application/json' -H 'X-Plex-Token: <myToken>'
Here's a small excerpt of that response, you can see multiple entries in the array do not have the
playlistType
attribute. Those all coincide with them having a"type": "directory"
which is how Plex imports playlist folders from iTunes.The
"type": "directory"
entries do not render in the Plex UI and are not usable as a playlist in Plex, wasn't obvious until viewing the API response.Suggested Fix
Introduce some logic to ignore the
"type": "directory"
entries. Perhaps first evaluate thetype
. For example, iftype
==playlist
, then continue to evaluate theplaylistType
.Let me know if any additional information is needed.
What version of Home Assistant Core has the issue?
core-2024.6.2
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
homeassistantlogs20240614.txt
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information
No response