Playlist Shuffle state with python?
#1
Hi,
is there any way to find out (with python) if the playlist is shuffled or not?

Actualy I only want a button on my remote to toggle shuffle on/off. Turn on works - turn off also, but I could not find any information to get the shuffle state to switch between shuffle/unshuffle.
Reply
#2
This works:

Code:
if xbmc.getInfoLabel('Playlist.Random').lower() == 'random':
            xbmc.PlayList(xbmc.PLAYLIST_MUSIC).unshuffle()
Reply
#3
Ahh thanks. "getInfoLabel" was the missing function Smile
Reply

Logout Mark Read Team Forum Stats Members Help
Playlist Shuffle state with python?0