Added check for channel in kodi media player to play channel from PVR. (#3475)

* Added check for channel in kodi media player to play channel from PVR.

* test
This commit is contained in:
irvingwa 2016-09-23 02:50:07 -04:00 committed by Paulus Schoutsen
parent 7625aae373
commit 65b1a731ca
2 changed files with 4 additions and 1 deletions

View File

@ -316,4 +316,7 @@ class KodiDevice(MediaPlayerDevice):
def play_media(self, media_type, media_id, **kwargs):
"""Send the play_media command to the media player."""
if media_type == "CHANNEL":
self._server.Player.Open({"item": {"channelid": int(media_id)}})
else:
self._server.Player.Open({"item": {"file": str(media_id)}})

View File