2012-05-10, 22:45
This is the second addon I develop, the other one went ok and now it seems I can't get things to work for some reason. I'm trying to list a series of pictures and let the user select the picture and display them using the regular slideshow player from XBMC. I'm able to show the link but it doesn't don't work (nothing happens when clicked) and nothing in the form of an ERROR comes up in the log. I've removed all functionality from the code to the point where I'm just adding one link to a picture in the local drive, and it still won't work. ANY HELP will be GREATLY appreciated.
Here's the simplified code:
import urllib,urllib2,re,xbmcplugin,xbmcgui
from xml.dom import minidom
import subprocess
import xbmcaddon
liz=xbmcgui.ListItem("Link", "", "")
liz.setInfo( type="Pictures", infoLabels={ "Title":"Photo"} )
xbmcplugin.addDirectoryItem(handle=0,url="C:\\1_616140.jpg",listitem=liz,isFolder=False)
xbmcplugin.endOfDirectory(0)
Here's the simplified code:
import urllib,urllib2,re,xbmcplugin,xbmcgui
from xml.dom import minidom
import subprocess
import xbmcaddon
liz=xbmcgui.ListItem("Link", "", "")
liz.setInfo( type="Pictures", infoLabels={ "Title":"Photo"} )
xbmcplugin.addDirectoryItem(handle=0,url="C:\\1_616140.jpg",listitem=liz,isFolder=False)
xbmcplugin.endOfDirectory(0)