How can I list all available profiles into xbmc.

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
rosaldanha Offline
Junior Member
Posts: 8
Joined: Oct 2010
Reputation: 0
Post: #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 !
find quote
AddonScriptorDE Offline
Fan
Posts: 310
Joined: May 2012
Reputation: 14
Location: Germany
Post: #2
Hi,
Code:
os.listdir(xbmc.translatePath("special://masterprofile/profiles"))
returns a list of your profiles.

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

cheers,
asde
find quote