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:
1 parent
7625aae373
commit
65b1a731ca
2 files changed
+4
-1
No files matched your search
@@ -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."""
|
||||
self._server.Player.Open({"item": {"file": str(media_id)}})
|
||||
if media_type == "CHANNEL":
|
||||
self._server.Player.Open({"item": {"channelid": int(media_id)}})
|
||||
else:
|
||||
self._server.Player.Open({"item": {"file": str(media_id)}})
|
||||
Whitespace-only changes.
Reference in new issue
Block a user