[RELEASE] Export Watched Data - Backup your watched status
#14
@castortray
Can't really help you that much other then to try to point you in the right direction, I don't know how much python you know but if you know a little programming it shouldn't be that hard.
Maybe you can have a look at some other addons for xbmc that handles mysql databases and see how they do it.

But the things in the default.py file you probably are interested in are these...
Code:
#this one enables connections to sqlite
from pysqlite2 import dbapi2 as sqlite

#this is the path to the file (db-server in the mysql case)
videoDB =  xbmc.translatePath("special://profile/Database/MyVideos34.db")

#this creates the actual connection
dbCon = sqlite.connect(videoDB)

If you figure out the equivalent ones for mysql then I think you should be done.
If you find any spelling mistakes you can keep them ;)
Reply


Messages In This Thread
[No subject] - by iDude - 2009-12-04, 15:17
[No subject] - by tikkiew - 2009-12-05, 20:58
[No subject] - by JustinAiken - 2010-05-29, 16:19
[No subject] - by Fox - 2010-09-17, 22:43
[No subject] - by asr82 - 2010-11-05, 16:49
[No subject] - by ubuntuf4n - 2010-11-12, 04:17
[No subject] - by olympia - 2010-11-12, 08:44
[No subject] - by ubuntuf4n - 2010-11-12, 18:00
[No subject] - by Fox - 2010-11-17, 09:31
[No subject] - by thica - 2011-01-18, 09:29
[No subject] - by castortray - 2011-01-22, 23:41
[No subject] - by Fox - 2011-01-24, 21:37
[No subject] - by bigbear77 - 2011-07-22, 17:47
[No subject] - by Fox - 2011-07-22, 18:52
[No subject] - by bigbear77 - 2011-07-23, 12:56
[No subject] - by Fox - 2011-07-23, 13:57
[No subject] - by Shinu - 2011-08-02, 02:41
[No subject] - by Fox - 2011-08-02, 11:25
[No subject] - by Shinu - 2011-08-02, 21:51
[No subject] - by Fox - 2011-08-02, 21:56
[No subject] - by Shinu - 2011-08-02, 22:04
[No subject] - by Fox - 2011-08-02, 22:07
[No subject] - by Fox - 2011-08-04, 14:02
[No subject] - by Shinu - 2011-08-04, 21:25
[No subject] - by castortray - 2011-08-05, 00:00
[No subject] - by Fox - 2011-09-07, 14:28
[No subject] - by flobbes - 2011-09-16, 22:15
[No subject] - by Fox - 2011-09-26, 08:22
[No subject] - by XmemphistoX - 2011-09-28, 08:59
[No subject] - by Fox - 2011-09-28, 09:02
[No subject] - by XmemphistoX - 2011-09-28, 09:04
[No subject] - by azgul - 2011-10-09, 23:46
[No subject] - by Fox - 2011-10-10, 08:20
Updates. - by Weatherman - 2011-11-20, 23:30
[No subject] - by Fox - 2011-11-21, 10:14
Exporting - by Weatherman - 2011-11-21, 17:03
[No subject] - by olympia - 2011-11-21, 17:20
[No subject] - by Fox - 2011-11-21, 17:43
[No subject] - by JustinAiken - 2011-11-21, 18:47
[No subject] - by olympia - 2011-11-21, 21:01
[No subject] - by Weatherman - 2011-11-22, 02:09
[No subject] - by pko66 - 2011-11-24, 15:22
[No subject] - by Fox - 2012-01-10, 15:33
[No subject] - by Ecwfrk - 2012-01-15, 18:30
[No subject] - by Fox - 2012-01-15, 21:46
[No subject] - by Fox - 2012-01-17, 15:37
nice one - by jeanbraye - 2012-01-25, 21:59
[No subject] - by JustinAiken - 2012-02-15, 01:36
[No subject] - by Fox - 2012-02-15, 09:11
[No subject] - by Fox - 2012-02-15, 10:07
[No subject] - by JustinAiken - 2012-02-15, 16:33
[No subject] - by Fox - 2012-02-15, 16:52
[No subject] - by JustinAiken - 2012-02-17, 02:57
[No subject] - by Fox - 2012-02-17, 10:11
[No subject] - by JustinAiken - 2012-02-17, 19:47
[No subject] - by Fox - 2012-02-17, 20:43


Logout Mark Read Team Forum Stats Members Help
[RELEASE] Export Watched Data - Backup your watched status1
This forum uses Lukasz Tkacz MyBB addons.