li = xbmcgui.ListItem(name, iconImage="DefaultVideo.png", thumbnailImage=iconimage)
# NB 18.04.19 li.setInfo( type="Video", infoLabels={ "Title": name } )
li.setInfo( type="Video", infoLabels={ "Title": name , "Plot": description} )
- ok = xbmcplugin.addDirectoryItem(handle=int(sys.argv[1]),url=url,listitem=li)
+ ok = xbmcplugin.addDirectoryItem(handle=addon_handle,url=url,listitem=li)
return ok
def addDir(name,url,mode,iconimage,description):
ok = True
li = xbmcgui.ListItem(name, iconImage="DefaultFolder.png", thumbnailImage=iconimage)
li.setInfo( type="Video", infoLabels={ "Title": name , "Plot": description} )
- ok = xbmcplugin.addDirectoryItem(handle=int(sys.argv[1]),url=u,listitem=li,isFolder=True)
+ ok = xbmcplugin.addDirectoryItem(handle=addon_handle,url=u,listitem=li,isFolder=True)
return ok
def getVideos(url):
'title': name,
'plot': description
} )
- xbmcplugin.addDirectoryItem(handle=int(sys.argv[1]),url=url,listitem=li)
+ xbmcplugin.addDirectoryItem(handle=addon_handle,url=row['link'],listitem=li)
else:
print '\t'.join([
row['lang'],
row['link'],
])
-# NB 17.04.19 addon_handle = int(sys.argv[1])
+# NB 17.04.19 addon_handle = addon_handle
# NB 17.04.19
# NB 17.04.19 url = 'http://localhost/some_video.mkv'
# NB 17.04.19 li = xbmcgui.ListItem('My First Video!', iconImage='DefaultVideo.png')
if KODI:
xbmcplugin.endOfDirectory(addon_handle)
-sys.exit(0)
+#sys.exit(0)