Kodi Community Forum

Full Version: acces to database videos
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I've a plugin wich don't work with eden. I found this line :

con = sqlite.connect(xbmc.translatePath('special://database/MyVideos34.db'))

Well, it seems that the number of the file is often updated (I'm on the pvr git version). What can i do to make the plugin connect with the good database ?

Thank you.
You can access the db with the HTTP API. If you need to open it directly in python you can find the version number in the version table with HTTP API.

You can of course also check the folder for the highest number of of MyVideos* in the folder.

Not sure if there is a better way.
ok, thank
I'll try to modify the plugin to use the api
awikatchikaen Wrote:ok, thank
I'll try to modify the plugin to use the api

What are you trying to do with the database? Which database format(default or MySQL)?
Looks like he is talking about sqlite.