Fix cast support for browsing local media source (#65115)
This commit is contained in:
parent
65fb6f26f1
commit
c470733feb
1 changed files with 10 additions and 3 deletions
|
@ -471,9 +471,16 @@ class CastDevice(MediaPlayerEntity):
|
||||||
"audio/"
|
"audio/"
|
||||||
)
|
)
|
||||||
|
|
||||||
if plex.is_plex_media_id(media_content_id):
|
if media_content_id is not None:
|
||||||
return await plex.async_browse_media(
|
if plex.is_plex_media_id(media_content_id):
|
||||||
self.hass, media_content_type, media_content_id, platform=CAST_DOMAIN
|
return await plex.async_browse_media(
|
||||||
|
self.hass,
|
||||||
|
media_content_type,
|
||||||
|
media_content_id,
|
||||||
|
platform=CAST_DOMAIN,
|
||||||
|
)
|
||||||
|
return await media_source.async_browse_media(
|
||||||
|
self.hass, media_content_id, **kwargs
|
||||||
)
|
)
|
||||||
|
|
||||||
if media_content_type == "plex":
|
if media_content_type == "plex":
|
||||||
|
|
Loading…
Add table
Reference in a new issue