Skip to content

playLiveStream not working #2

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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