getSetting and directory order
#1
Few more questions that I can't seem to find the answer to,
links would be appreciated.

First, I'm testing on RC1. I'm using xbmcaddon to get persistant addon
settings. Worked great for me, but had a friend test on last stable
release and I get:

20:39:35 T:248 M:256909312 NOTICE: import xbmcaddon
20:39:35 T:248 M:256909312 NOTICE: ImportError
20:39:35 T:248 M:256909312 NOTICE: :
20:39:35 T:248 M:256909312 NOTICE: No module named xbmcaddon

So I'm assuming xbmcaddon is only in dharma and newer? If so what's
the best way to be backwards compatible ?


Second, I'm adding a bunch of videos to a directory list. I want to
add some nav links to the top of the list. But no matter what I do
they seem to show up at the bottom. It doesn't seem to depend
on order they were added, folder or not folder, or the title.

For example:

label = " << Previous Page (" + str(prev_offset+1) + "-" + str(offset) + " of " + str(total_count) + ")"
prev_thumb = xbmc.translatePath(os.path.join(G_ICONS_PATH,"prev.png"))
li = xbmcgui.ListItem(label, iconImage=prev_thumb, thumbnailImage=prev_thumb )
li.setInfo( type="Video", infoLabels={"Title":label } )
li.setProperty('IsPlayable', 'false' );
retVal = xbmcplugin.addDirectoryItem(handle=int(D_HANDLE),url=showUrl,listitem=li,isFolder=True)

Any ideas how to force it to the top?

Thanks for any help.
Reply
#2
AVP777 Wrote:
Code:
label = " << Previous Page (" + str(prev_offset+1) + "-" + str(offset) + " of " + str(total_count) + ")"
prev_thumb  = xbmc.translatePath(os.path.join(G_ICONS_PATH,"prev.png"))
li = xbmcgui.ListItem(label, iconImage=prev_thumb, thumbnailImage=prev_thumb )
li.setInfo(type="Video", infoLabels={"Title":label } )
li.setProperty('IsPlayable', 'false' );
retVal = xbmcplugin.addDirectoryItem(handle=int(D_HANDLE),url=showUrl,listitem=li,isFolder=True)

Try without
Code:
li.setInfo(type="Video")
Also a "back" button in plugins would be really stupid, its already built in.
Reply
#3
Same result. Can someone tell me what the sorting is based on if not
on the order it was added?
Reply

Logout Mark Read Team Forum Stats Members Help
getSetting and directory order0