Skip to content
This repository has been archived by the owner on Sep 4, 2019. It is now read-only.

Commit

Permalink
fix auth for live streaming
Browse files Browse the repository at this point in the history
  • Loading branch information
hubsif committed Mar 14, 2015
1 parent d1c7dc6 commit 46444c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion addon.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<addon id="plugin.video.tk_bbl" name="Telekom Basketball" version="1.0.1" provider-name="hubsif">
<addon id="plugin.video.tk_bbl" name="Telekom Basketball" version="1.0.2" provider-name="hubsif">
<requires>
<import addon="xbmc.python" version="2.1.0"/>
<import addon="script.module.mechanize" version="0.2.5"/>
Expand Down
3 changes: 2 additions & 1 deletion default.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ def build_url(query):
response = browser.response().read()
xmlroot = ET.ElementTree(ET.fromstring(response))
playlisturl = xmlroot.find('token').get('url')
auth = xmlroot.find('token').get('auth')

listitem = xbmcgui.ListItem(path=playlisturl)
listitem = xbmcgui.ListItem(path=playlisturl + "?hdnea=" + auth)
xbmcplugin.setResolvedUrl(_addon_handler, True, listitem)

0 comments on commit 46444c9

Please sign in to comment.