2013-10-18, 09:45
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?
it works but no random order
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