Advertisement
Guest User

addon.py

a guest
Jul 6th, 2014
340
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.35 KB | None | 0 0
  1. import sys
  2. import xbmcgui
  3. import xbmcplugin
  4.  
  5. addon_handle = int(sys.argv[1])
  6.  
  7. xbmcplugin.setContent(addon_handle, 'movies')
  8.  
  9. url = 'http://localhost/video.mp4'
  10. li = xbmcgui.ListItem('My First Video!', iconImage='DefaultVideo.png')
  11. xbmcplugin.addDirectoryItem(handle=addon_handle, url=url, listitem=li)
  12.  
  13. xbmcplugin.endOfDirectory(addon_handle)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement