XBMC Community Forum
[RELEASE] Export Watched Data - Backup your watched status - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- 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] Export Watched Data - Backup your watched status (/showthread.php?tid=62874)

Pages: 1 2 3 4 5 6 7 8 9 10


[RELEASE] Export Watched Data - Backup your watched status - ericwilkison - 2009-11-29 18:21

Have you ever wanted to re-scrape your TV episodes but did not want to lose the database information about what you've already watched? This is a little XBMC script that will backup and restore the watched field for each Movie and TV Show in XBMC.

When run Export Watched Data will ask if you want to export or import. When you choose export it will query the SQLight database for all video files that have been watched and create an xml file in the database folder listing each by file name. When you select import it will update the watched field for each record that matches a filename listed in the xml file.
  • Can be used to backup and restore the watched data when removing the database and re-scraping.
  • Useful for moving your watched data to a new XBMC box.
  • Because the export file only contains file names without full path information you can re-create your folder structure and keep the watched data.
  • If you have multiple files with the same name, but in different folders this script will not work for you. For example if you /Episodes/Lost/s01e01.avi and /Episodes/Monk/s01e01.avi and one is watched before you export both will be marked as watched after and import.


I've tested it with 9.4 under Windows and Linux and 9.10 Beta 1 under Linux.


Download


- iDude - 2009-12-04 15:17

Thanks. Saved me a lot of work


- tikkiew - 2009-12-05 20:58

I have tested this on xbox rev23183. Any plans making this xbox compatible?


- clock2113 - 2010-05-29 16:19

Just found out about this script, which would be like a dream come true... Anybody tried recently?


- Fox - 2010-09-17 22:43

Just tried it...
Went from an pre-addon build so used it as a script there. Then after installation of Dharma beta 2 I made it into an addon and copied back the watched.xml file into the database dir and ran the addon. Worked flawlessly Smile


- asr82 - 2010-11-05 16:49

Thanks for creating this. Any idea if I can use it in conjunction with transferring my library from the SQLLite DB to a MySQL DB?


Would you share the converted script? - master.lincoln - 2010-11-12 03:57

@Fox or anybody else:

How can I convert it to a Dharma compatible addon?
I need it to completely move to Dharma now.

Thanks in advance....


- ubuntuf4n - 2010-11-12 04:17

Great addon, was looking for something like this for a really long time..,
could you make it Dharma Compatible ?


- olympia - 2010-11-12 08:44

http://xbmchuscraper.googlecode.com/files/script.watched.flag.zip

(I only did the conversion to addon, no support from my side)


- ubuntuf4n - 2010-11-12 18:00

Seems to be working,

Question: Where is the backup file saved in dharma?