@@ -68,7 +68,7 @@ def utc_offset():
6868
6969def get_jwt (username , password ):
7070 data = { "claims" : "{'id_token':{'urn:telekom.com:all':null}}" , "client_id" : "10LIVESAM30000004901TSMAPP00000000000000" , "grant_type" : "password" , "scope" : "tsm offline_access" , "username" : username , "password" : password }
71- response = urllib .urlopen (oauth_url + '?' + urllib .urlencode (data ), "" ).read ()
71+ response = urllib2 .urlopen (urllib2 . Request ( oauth_url , urllib .urlencode (data ), { 'Content-Type' : 'application/json' }) ).read ()
7272 jsonResult = json .loads (response )
7373
7474 if 'access_token' in jsonResult :
@@ -219,6 +219,7 @@ def geteventLane():
219219
220220 if event ['metadata' ]['state' ] == 'live' :
221221 li .setProperty ('IsPlayable' , 'true' )
222+ li .setInfo ('video' , {})
222223 xbmcplugin .addDirectoryItem (handle = _addon_handler , url = url , listitem = li )
223224 elif not ('onlylive' in args and args ['onlylive' ]):
224225 xbmcplugin .addDirectoryItem (handle = _addon_handler , url = url , listitem = li , isFolder = True )
@@ -261,6 +262,7 @@ def getevent():
261262 li = xbmcgui .ListItem (eventVideo ['title' ], iconImage = 'https://www.telekomsport.de' + eventVideo ['images' ]['editorial' ])
262263 li .setProperty ('fanart_image' , 'https://www.telekomsport.de' + eventVideo ['images' ]['editorial' ])
263264 li .setProperty ('IsPlayable' , 'true' )
265+ li .setInfo ('video' , {})
264266 xbmcplugin .addDirectoryItem (handle = _addon_handler , url = url , listitem = li )
265267 xbmcplugin .endOfDirectory (_addon_handler )
266268
@@ -297,6 +299,8 @@ def getvideo():
297299 auth = xmlroot .find ('token' ).get ('auth' )
298300
299301 listitem = xbmcgui .ListItem (path = playlisturl + "?hdnea=" + auth )
302+ listitem .setProperty ('inputstreamaddon' , 'inputstream.adaptive' )
303+ listitem .setProperty ('inputstream.adaptive.manifest_type' , 'hls' )
300304 xbmcplugin .setResolvedUrl (_addon_handler , True , listitem )
301305
302306
0 commit comments