tommistolercz / plugin.video.vk

Kodi add-on for watching videos from VK.com social network.
GNU General Public License v3.0
15 stars 2 forks source link

The userdata-directory "plugin.video.vk" is not created on first start #109

Closed ostvanc closed 1 year ago

ostvanc commented 2 years ago

On Linux, the user data for the addons is saved in ~/.kodi/userdata/addon_data. This addon uses the file saved in ~/.kodi/userdata/addon_data/plugin.video.vk/db.json, but does not check on first start if the directory plugin.video.vk exists. This leads to the following bug:

2022-08-09 19:49:53.338 T:6791 WARNING : xbmc.translatePath is deprecated and might be removed in future kodi versions. Please use xbmcvfs.translatePath instead. 2022-08-09 19:49:53.339 T:6791 ERROR : EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--

This bug does not only appear on Linux, but also on other systems like Windows and Android TV. Unless you do not have root access, you are not able to create the missing directory manually on ATV.

tommistolercz commented 2 years ago

Thanks for posting this issue, but I'm confused a bit ;-)

Under what circumstances do you run the addon without existing addon data folder? (~/.kodi/userdata/addon_data/plugin.video.vk/)

This folder is created automatically by Kodi, typically when the addon settings are saved for the first time. If this folder doesn't exist, there isn't even a settings.xml with VK credentials, and thus the addon can't be run at all.

ostvanc commented 2 years ago

Oh yes, you are right. There is only one way to run this addon without existing addon data directory:

Install the VK addon and run it directly. Then the directory ~/.kodi/userdata/addon_data/plugin.video.vk/ does not exists yet and this error occurs.

If you open addon settings first and save your changes, then this directory is created automatically and this error does not appear anymore.

ostvanc commented 1 year ago

I think, this issue can be closed now.