How can I list all available profiles into xbmc.
#1
Hello,
I starting to dev an addon to xbmc, the objective is to limit the "per day" usage time for one profile (logged user) and when this time is reached logoof automatically.
The problem is that I need to list all the available profiles, in xbmc, to configure the times, and looking to the api I didn´t find anything useful.

Thanks in advance !


Reply
#2
Hi,
Code:
os.listdir(xbmc.translatePath("special://masterprofile/profiles"))
returns a list of your profiles.

For example: ['UserOne', 'UserTwo']

cheers,
asde
Reply

Logout Mark Read Team Forum Stats Members Help
How can I list all available profiles into xbmc.0