Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

playLiveStream not working #2

Open
szaroubi opened this issue May 15, 2014 · 0 comments
Open

playLiveStream not working #2

szaroubi opened this issue May 15, 2014 · 0 comments

Comments

@szaroubi
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant