Where to save addon data?
#1
I've been using the resources directory of the addon, but I was wondering is there a better place to store data created by an addon?

I see there's the common plugin cache, but I need a place that's more robust (ie won't be deleted upon corruption).

Am I best just to keep using the 'resources' folder?
Reply
#2
Code:
import xbmcaddon

__addon__ = xbmcaddon.Addon()
__profile__ = xbmc.translatePath( __addon__.getAddonInfo('profile') ).decode("utf-8")

__profile__ would be "userdata/addon_data/<your addon ID>"
Reply
#3
Excellent, thanks for the reply!
Reply
#4
Old thread but still a problem of mine.

I guess this is a solution but there must be an easier way.

http://kodi.wiki/view/Add-on_structure

According to this it's normal to have a data folder under the resources directory. Isn't there an easy way to get files from this folder rather than using the above solution? Doing an addon for Kodi 18.
Reply
#5
No its still the same
Read/follow the forum rules.
For troubleshooting and bug reporting, read this first
Interested in seeing some YouTube videos about Kodi? Go here and subscribe
Reply

Logout Mark Read Team Forum Stats Members Help
Where to save addon data?0