From f7d0afc0410ce190ad8fd79f4f7c6caa5a96756f Mon Sep 17 00:00:00 2001 From: Alhaziel01 Date: Fri, 19 Mar 2021 20:05:51 +0100 Subject: [PATCH] =?UTF-8?q?Raiplay=20Possibilit=C3=A0=20di=20mettere=20in?= =?UTF-8?q?=20pausa=20e=20ricominciare=20dall'inizio?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- channels/raiplay.py | 2 +- platformcode/platformtools.py | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) 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')