cant shuffle/ random playlist playlist.shuffle()
#1
hey all,

i am building this addon using playlist from youtube ( i create them)
i want it to play in random order each time but my code wont do it,

i did excatly what they did in the youtube addon , no sucsses,

someone please?

Code:
playlist = xbmc.PlayList(xbmc.PLAYLIST_VIDEO)
playlist.clear()
playlist1 = []
........
playlist1.append((finalurl ,liz))
.....
for blob ,liz in playlist1:
            try:
                if blob:
                    playlist.add(blob,liz)
            except:
                pass
        playlist.shuffle()

        if not xbmc.Player().isPlayingVideo():
       xbmc.executebuiltin('playlist.playoffset(video , 0)')

it works but no random order
Reply
#2
where i can find the actual implementation of this built in function?
xbmc.PlayList
Reply

Logout Mark Read Team Forum Stats Members Help
cant shuffle/ random playlist playlist.shuffle()0