mirror of
https://github.com/sudoxnym/fin-assistant.git
synced 2026-04-14 11:37:38 +00:00
FIX: media play
This commit is contained in:
parent
dda5322199
commit
29c3372bb5
1 changed files with 6 additions and 4 deletions
|
|
@ -31,7 +31,7 @@ from homeassistant.core import HomeAssistant, callback
|
|||
import homeassistant.util.dt as dt_util
|
||||
|
||||
from . import JellyfinClientManager, autolog
|
||||
from .media_source import async_library_items
|
||||
from .media_source import JellyfinSource, async_library_items
|
||||
|
||||
from .const import (
|
||||
DOMAIN,
|
||||
|
|
@ -335,8 +335,10 @@ class JellyfinMediaPlayer(MediaPlayerEntity):
|
|||
|
||||
async def async_play_media(self, media_type: str, media_id: str, **kwargs) -> None:
|
||||
_LOGGER.debug("Play media requested: %s / %s", media_type, media_id)
|
||||
await self.device.play_media(media_id)
|
||||
_, real_media_id = JellyfinSource.parse_mediasource_identifier(media_id)
|
||||
await self.device.play_media(real_media_id)
|
||||
|
||||
async def async_browse_item(self, id):
|
||||
async def async_browse_item(self, media_id):
|
||||
_LOGGER.debug(f"async_browse_item triggered {id}")
|
||||
await self.device.browse_item(id)
|
||||
_, real_media_id = JellyfinSource.parse_mediasource_identifier(media_id)
|
||||
await self.device.browse_item(real_media_id)
|
||||
|
|
|
|||
Loading…
Reference in a new issue