kodi platform: following jsonrpc-request version bump (0.3), let kodi file abstraction layer handle a collection item, url or file to play (#2398)

pull/2381/head
patkap 2016-07-01 01:35:20 +02:00 committed by Paulus Schoutsen
parent a57cd58675
commit 952b1a3e0c
1 changed files with 1 additions and 1 deletions

View File

@ -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)}})