Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sys
- import xbmcgui
- import xbmcplugin
- addon_handle = int(sys.argv[1])
- xbmcplugin.setContent(addon_handle, 'movies')
- url = 'http://localhost/video.mp4'
- li = xbmcgui.ListItem('My First Video!', iconImage='DefaultVideo.png')
- xbmcplugin.addDirectoryItem(handle=addon_handle, url=url, listitem=li)
- xbmcplugin.endOfDirectory(addon_handle)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement