diff --git a/channels/raiplay.py b/channels/raiplay.py index 51a6adb5..e394be75 100644 --- a/channels/raiplay.py +++ b/channels/raiplay.py @@ -185,7 +185,7 @@ def live(item): itemlist =[] for channel, value in liveDict().items(): itemlist.append(item.clone(title = support.typo(channel, 'bold'), fulltitle = channel, show = channel, url = value['url'], - plot = value['plot'], action = 'play', fanart = value['fanart'], no_return=True)) + plot = value['plot'], action = 'play', fanart = value['fanart'], manifest='hls', no_return=True)) return support.thumb(itemlist, live=True) diff --git a/platformcode/platformtools.py b/platformcode/platformtools.py index ffd411a9..72fbe4c6 100644 --- a/platformcode/platformtools.py +++ b/platformcode/platformtools.py @@ -704,7 +704,13 @@ def play_video(item, strm=False, force_direct=False, autoplay=False): # if it is a video in mpd format, the listitem is configured to play it ith the inpustreamaddon addon implemented in Kodi 17 # from core.support import dbg;dbg() - if mpd: + if item.manifest == 'hls': + if not install_inputstream(): + return + xlistitem.setProperty('inputstream' if PY3 else 'inputstreamaddon', 'inputstream.adaptive') + xlistitem.setProperty('inputstream.adaptive.manifest_type', 'hls') + xlistitem.setMimeType('application/x-mpegURL') + if mpd or item.manifest =='mpd': if not install_inputstream(): return xlistitem.setProperty('inputstream' if PY3 else 'inputstreamaddon', 'inputstream.adaptive')