acces to database videos
#1
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.
Reply
#2
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.
Reply
#3
ok, thank
I'll try to modify the plugin to use the api
Reply
#4
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)?
Reply
#5
Looks like he is talking about sqlite.
Reply

Logout Mark Read Team Forum Stats Members Help
acces to database videos0