[RELEASE] Watched Data Export/Import - Programs Addon - Printable Version
+- Kodi Community Forum (http://forum.kodi.tv)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: Add-ons Help and Support (/forumdisplay.php?fid=27)
+---- Forum: Program Add-ons (/forumdisplay.php?fid=151)
+---- Thread: [RELEASE] Watched Data Export/Import - Programs Addon (/showthread.php?tid=129448)
[RELEASE] Watched Data Export/Import - Programs Addon - Fox - 2012-04-20 13:20
Watched Data Export/Import - Programs Addon
This addon creates a backup of your watched data so you can import it back in at a later time.
It saves the name of the file so even if your path changes or you unpack packed files it will still mark them as watched.
The original thread started by ericwilkison can be found here:
RE: [RELEASE] Watched Data Export/Import - Programs Addon - TugboatBill - 2012-04-21 23:28
I'm having a problem getting this to work. I'm exporting on a Dharma XBMCLive client and importing to a Eden XBMCBuntu client. I'm using the MySql database.
Export on the Dharma client worked. A quick review of the .xbmc/userdtat/Database/watched.xml file looked good.
Copied the file over to the appropriate location on the Eden client. Ran the import and it completed without errors (~1500 files imported).
Videos don't show marked as watched.
Re-ran it with the debug option. It posted data to xbmc.log showing the database update commands, but no errors.
RE: [RELEASE] Watched Data Export/Import - Programs Addon - Fox - 2012-04-22 13:19
That sounds weird, never ran into something like that.
Only thing I can think of right now is if the db is write protected or something like that but then it should give an error in return.
I'm abroad atm and here I don't have a mysql setup, but I will make a virtual environment with it and do some testing.
Maybe you could turn on the full debug in XBMC and see if it gives some more useful information.
RE: [RELEASE] Watched Data Export/Import - Programs Addon - Fox - 2012-04-24 13:17
Sorry TugboatBill no luck reproducing your "error" here. I set up a mysql here and tried a few things I thought could cause it, but none gave your result.
Have you had the chance to get a full debug log and see if it gives anything useful?
Some other things you could check for me...
*regular library update works?
*manually marking a video as watched works?
*did the import mark any video as watched at all?
*did you run the quick import (sql inserts > 0) or the slow one?
RE: [RELEASE] Watched Data Export/Import - Programs Addon - TugboatBill - 2012-04-24 16:59
I gave up trying and went with a "can't fail" approach. A pen and paper. Fortunately I only had a dozen unwatched movies and shows tended to be watched sequentially so I was able to mark things manually without too much effort. My problem probably wasn't to do with this addon as I saw the problem before when I migrated from Dharma to Eden.
RE: [RELEASE] Watched Data Export/Import - Programs Addon - Monkeysweat - 2012-04-25 20:57
hopefully this works, I've had 3 hard drive crashes over past year and I have to always go back and mark my watched - PITA when you got 1400 movies and 100 different series
I just got my new SSD back today and I'll be reinstalling windows (and XBMC) again
PS OCZ Vertex II not reliable,, hopefully the agility III is better.
RE: [RELEASE] Watched Data Export/Import - Programs Addon - akuiraz - 2012-04-29 17:51
I see that you have added file id support from the db... could you add support for using thetvdb episode id? I believe that would allow it to make episodes as watched regardless of the actual file name and extension.
an example scenario where this would be useful:
I've got Bones added to my library using an addon like IceLibrary or 1Channel... and the current season I have sickbeard downloading the episodes. I do it like this so that I have access to the older seasons using .strm file's and the new episodes are downloaded as they release. unfortunatly this causes there to be duplicates of the current season as it has boyh .strm and .mp4/.avi files...
I think adding the tvdb episode id to the export/import would solve this by marking both copies as watched when seen. thanks
RE: [RELEASE] Watched Data Export/Import - Programs Addon - Fox - 2012-04-29 20:36
Sounds very reasonable akuiraz, but from what I could find (just from a quick glance) the id from thetvdb isn't saved anywhere in the db so that would make it quite slow to do a lookup for every file to get the id.
I saw that the series id was saved so maybe I could use that combined with the season and episode number to make something useful.
I'll have a look into it and see what I can do.
RE: [RELEASE] Watched Data Export/Import - Programs Addon - MeMeMe - 2012-05-16 18:31
I just tested this and it worked well. On one of my xbmc installs, i have two profiles with different libraries. Will this create separate watched files for each library?
RE: [RELEASE] Watched Data Export/Import - Programs Addon - Fox - 2012-05-16 19:28
No, it will create one for the whole db.
Didn't even knew you could have separate libraries in the same db, something I'll have to look into.
RE: [RELEASE] Watched Data Export/Import - Programs Addon - acandido - 2012-05-18 03:55
Thanks for this!
I modified it a bit to include the lastPlayed field since I use that field to build some smart playlists. I am in no way a coder but here's my edit. This will only work if quickexec is set to 0, I was too lazy to modify the other if statement stuff.
RE: [RELEASE] Watched Data Export/Import - Programs Addon - Fox - 2012-05-18 09:24
Thanks acandido thats a good idea, the pastebin didn't work for me though.
But no worries, I'll add that, I'm in the process of working out the tvshow id and stuff so I'll add the lastPlayed at the same time.
RE: [RELEASE] Watched Data Export/Import - Programs Addon - Monkeysweat - 2012-05-21 04:11
Is it possible to have this import saved data from another pc to remote pc on same network. I just got a rasp Pi and it would be great to sync up the watched data from time to time just not every time it boots up
RE: [RELEASE] Watched Data Export/Import - Programs Addon - Fox - 2012-05-21 07:59
Sure it would be possible with a timed script or such but why don't you use a shared database instead?
RE: [RELEASE] Watched Data Export/Import - Programs Addon - Monkeysweat - 2012-05-21 08:51
I don't even need a times script. I have no problem triggering the sync every couple weeks. Sharing the library has been considered. But the raspberry Pi is not really fast at importing stuff and I don't know how it will affect overall usage of the system It took almost 24 hours to import the library initially. For some reason it takes the Pi a minute or two per movie and about 20 to 30 seconds per tv episode to give you an idea. Actually navigating the library isn't too bad I can say it is similar to a slower pc but playback is damn near perfect I haven't played a lot of files but haven't found anything that doesn't play from my library. This script seems to give you no option to export to another machine or to import from another machine. Is there a file created by the script that I could share between the machines that would share the watched data or is it possible to get this feature added to this script? It would obviously only work on machines working from the same files anyways