Skip to content

Commit

Permalink
Kodi 19 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
markop159 authored Jun 14, 2021
1 parent cd6fc96 commit dea8754
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions default.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,11 @@ def playPath(path, title = "", plot=""):
is_helper = inputstreamhelper.Helper(PROTOCOL, drm=DRM)
if is_helper.check_inputstream():
li = xbmcgui.ListItem(path=path)
li.setProperty('inputstreamaddon', is_helper.inputstream_addon)
li.setMimeType('application/xml+dash')
if PY2:
li.setProperty('inputstreamaddon', is_helper.inputstream_addon)
else:
li.setProperty('inputstream', is_helper.inputstream_addon)
li.setProperty('inputstream.adaptive.manifest_type', PROTOCOL)
li.setProperty('inputstream.adaptive.license_type', DRM)
if max_bandwidth:
Expand Down Expand Up @@ -444,8 +448,8 @@ def addLink(mode, name, iconimage, params={}, fanart="", plot="", context_items
banner = fanart
if not poster:
poster = fanart
li = xbmcgui.ListItem(name, iconImage=iconimage, thumbnailImage=iconimage)
li.setArt({ 'thumb': iconimage,'poster': poster, 'banner' : banner, 'fanart': fanart })
li = xbmcgui.ListItem(name)
li.setArt({ 'thumb': iconimage,'poster': poster, 'banner' : banner, 'fanart': fanart, 'icon':iconimage })
li.setInfo( type="Video", infoLabels={"Title": name, "plot": plot})
if isPlayable:
li.setProperty("IsPlayable" , "true")
Expand Down

0 comments on commit dea8754

Please sign in to comment.