Skip to content

playLiveStream not working #2

@szaroubi

Description

@szaroubi

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions