Universal method to save user settings in file
#1
Hi

I'm new to XMBC plugin development.

I would like to save custom list in file locally, it should be working on platforms like windows, linux and android
User should be able to modify this list via plugin, so I will have to have permissions to modify that local file.

What would you advice?

Thx
Reply
#2
This is what I'm looking for. Hope will get some helps.
Thanks in advance!!
Reply
#3
addons can (must) store everything in their own subfolder in addon_data.
to get the path to this folder in python:
Code:
folder = xbmc.translatePath(xbmcaddon.Addon().getAddonInfo('profile')).decode('utf-8')

for the rest, use xbmcvfs to create/read/write files:
http://mirrors.xbmc.org/docs/python-docs...mcvfs.html
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply

Logout Mark Read Team Forum Stats Members Help
Universal method to save user settings in file0