kodi platform: following jsonrpc-request version bump (0.3), let kodi file abstraction layer handle a collection item, url or file to play (#2398)
parent
a57cd58675
commit
952b1a3e0c
|
@ -301,4 +301,4 @@ class KodiDevice(MediaPlayerDevice):
|
|||
|
||||
def play_media(self, media_type, media_id, **kwargs):
|
||||
"""Send the play_media command to the media player."""
|
||||
self._server.Player.Open({media_type: media_id}, {})
|
||||
self._server.Player.Open({"item": {"file": str(media_id)}})
|
||||
|
|
Loading…
Reference in New Issue