AddonScriptorDE/plugin.video.arte_tv

playLiveStream not working

Opened this issue · 0 comments

Hello,
The playLiveStream function was not working on my installation. (Never coded a plugin for xbmc, and new to python).
I was, though, able to modify the code to pickup the m3u8 stream instead of the rmtp stream.

Here is what the playLiveStream function looks like after my modification

def playLiveStream():
if language == "de":
url = "http://org-www.arte.tv/papi/tvguide/videos/livestream/player/D/"
elif language == "fr":
url = "http://org-www.arte.tv/papi/tvguide/videos/livestream/player/F/"
content = getUrl(url)
match = re.compile('"M3U8_HQ":.+?"url":"(.+?m3u8)"', re.DOTALL).findall(content)
listitem = xbmcgui.ListItem(path=match[0])
xbmcplugin.setResolvedUrl(pluginhandle, True, listitem)