mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 21:57:51 +00:00
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:
parent
7625aae373
commit
65b1a731ca
@ -316,4 +316,7 @@ class KodiDevice(MediaPlayerDevice):
|
|||||||
|
|
||||||
def play_media(self, media_type, media_id, **kwargs):
|
def play_media(self, media_type, media_id, **kwargs):
|
||||||
"""Send the play_media command to the media player."""
|
"""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)}})
|
self._server.Player.Open({"item": {"file": str(media_id)}})
|
||||||
|
0
virtualization/vagrant/run_tests
Normal file
0
virtualization/vagrant/run_tests
Normal file
Loading…
x
Reference in New Issue
Block a user