Bug Cant go Back out of a folder -.- its killing me inside
#1
Bug 
Ok - So I have the following setup for folders:
Code:
def List(category):
    if category == "1":
        addItem("Hi", "mode", logos+"247.png")
        elif category == "2":
                addItem("Hi Again", "mode2", logos+"248.png")

def addDir(category, logo):
    item = xbmcgui.ListItem(category, iconImage="DefaultFolder.png", thumbnailImage=logo)
    item.setProperty("fanart_image", fanart)
    return xbmcplugin.addDirectoryItem(handle=int(sys.argv[1]), url=sys.argv[0]+"?mode=list&c="+urllib.quote_plus(category), listitem=item, isFolder=True)

params = dict(parse_qsl(sys.argv[2][1:]))
try:
    mode = params["mode"]
except:
    mode = None

if mode==None:
    addDir("1", "DefaultFolder.png")
    addDir("2", "DefaultFolder.png")
else:
    if mode == "list": List(c)

It all works for going INTO folders and choosing items perfectly fine - But when I press back or click the ... it just goes to "Video Addons"
I cant work out how the FUCK im meant to do this Nod <- im going insane
Reply
#2
Where's your xbmcplugin.endOfDirectory(int(sys.argv[1])) ?
Reply
#3
xbmcplugin.endOfDirectory(int(sys.argv[1]), updateListing=True, cacheToDisc=False)
Right under at the very bottom of the script
Reply
#4
Is it meant to be under the list() after it actually lists everything?
Reply
#5
OH MY GOD it was because of updateListing=True
ffs ;-;
Reply

Logout Mark Read Team Forum Stats Members Help
Cant go Back out of a folder -.- its killing me inside0