Skip to content

Instantly share code, notes, and snippets.

@nwgat
Created July 21, 2015 11:19
Show Gist options
  • Select an option

  • Save nwgat/d13d133b2130fd924015 to your computer and use it in GitHub Desktop.

Select an option

Save nwgat/d13d133b2130fd924015 to your computer and use it in GitHub Desktop.
fcked up again
import sys
import xbmc
import xbmcgui
import xbmcplugin
addon_handle = int(sys.argv[1])
url='bluray://udf%3a%2f%2fC%253a%255cetc%255cdisc1.iso%2f/BDMV/PLAYLIST/00000.mpls'
li = xbmcgui.ListItem('BD EP1!')
xbmcplugin.addDirectoryItem(handle=addon_handle, url=url, listitem=li)
xbmcplugin.endOfDirectory(addon_handle)
# xbmc.Player().play(item=link)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment