Plugins not sorting correctly?
#1
I have a problem with way xbmc sorts the videos listed in plugins.

For example, if the videos were originally listed on a site as:
b, d, a, c

When the plugin lists the videos, they come out only in alphabetical order:
a, b, c, d

Sorting by the Date, file size does nothing.

Is there a way to disable xbmc's global sorting while the plugin is loaded? Or is there is method to keep the videos original order?
Reply
#2
You would have to add a specific plugin sort method.

What plugin is it ?

Help me help you.
Reply
#3
I finally found a solution...
Code:
        x=0
        for name, thumb, url in site:
            [b]name = str(int(x+1))+'. '+name[/b]
            li=xbmcgui.ListItem(name, iconImage=thumb, thumbnailImage=thumb)
            li.setInfo( type="Video", infoLabels={ "Title": name } )
            u=sys.argv[0]+"?mode=1&name="+urllib.quote_plus(name)+"&url="+urllib.quote_plus(url)
            xbmcplugin.addDirectoryItem(int(sys.argv[1]),u,li)
            x=x+1

This will list all my vidoes as:
1. Title
2. Another Title
3. Another Another Title

So now xbmc won't have a problem sorting "By Name".
Reply

Logout Mark Read Team Forum Stats Members Help
Plugins not sorting correctly?0