@@ -217,8 +217,7 @@ def geteventLane():
217217 li .setInfo ('video' , {'plot' : prettydate (scheduled_start )})
218218 li .setProperty ('fanart_image' , 'https://www.telekomsport.de' + event ['metadata' ]['images' ]['editorial' ])
219219
220- # assuming editorialLane always only has one video
221- if event ['metadata' ]['state' ] == 'live' or jsonResult ['data' ]['type' ] == 'editorialLane' :
220+ if event ['metadata' ]['state' ] == 'live' :
222221 li .setProperty ('IsPlayable' , 'true' )
223222 xbmcplugin .addDirectoryItem (handle = _addon_handler , url = url , listitem = li )
224223 elif not ('onlylive' in args and args ['onlylive' ]):
@@ -249,8 +248,8 @@ def getevent():
249248 isLivestream = 'islivestream' in jsonResult ['data' ]['content' ][0 ]['group_elements' ][0 ]['data' ][0 ] and jsonResult ['data' ]['content' ][0 ]['group_elements' ][0 ]['data' ][0 ]['islivestream' ]
250249 isPay = 'pay' in jsonResult ['data' ]['content' ][0 ]['group_elements' ][0 ]['data' ][0 ] and jsonResult ['data' ]['content' ][0 ]['group_elements' ][0 ]['data' ][0 ]['pay' ]
251250 url = build_url ({'mode' : 'video' , 'videoid' : jsonResult ['data' ]['content' ][0 ]['group_elements' ][0 ]['data' ][0 ]['videoID' ], 'isLivestream' : isLivestream , 'isPay' : isPay })
252- listitem = xbmcgui . ListItem ( path = url )
253- xbmcplugin .setResolvedUrl (_addon_handler , True , listitem )
251+ xbmc . Player (). play ( url )
252+ xbmcplugin .endOfDirectory (_addon_handler , succeeded = False )
254253 else :
255254 for content in jsonResult ['data' ]['content' ]:
256255 for group_element in content ['group_elements' ]:
0 commit comments