[RELEASE] Watched Data Export/Import - Programs Addon

  Thread Rating:
  • 2 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
chicowoodhill Offline
Junior Member
Posts: 35
Joined: Jun 2012
Reputation: 0
Post: #101
(2013-04-20 21:16)devkid Wrote:  The script reads the XML file and tries to find a matching entry in your current XBMC database for every XML element. If it does not find a matching item then that is what happened to you.

It works like this: For movies it tries to match title + year, for TV show episodes it matches showtitle, episode number and season number. Currently not all informations in the XML are used. To compare items it builds a string from the aforementioned components. So for a movie is "<Title>+<Year>" and for episodes it is "<showname>+S<season number>+E<episode number>".

So in your case the matching movie has to have the title "Steve Jobs: The Lost Interview" and be from the year 2012.

So make sure that you actually have that movie in your database. If that is the case then please post the debug log. Hopefully I can figure out what went wrong. I assume it again (or still) has something to do with the unicode encoding. Do all unmatched movies have special characters in the name like ":" in the above movie?

What you say makes sense to me. In my case, both media folders (TV & Movies) should be exactly the same, since I run a folder synchronization process on them each time they are brought together (i.e., when I get home from traveling). So if I understand what you've told me, if the media folders have the exact same contents, and the libraries have been updated (automatically done when XBMC is started), I don't understand why some items could not be found.

Unfortunately, I've just left on another trip and (damn!) forgot to grab the traveling HD, so I can't examine what's going on until I return later in the week. When I get back, I'll take a closer look at the media folders, libraries, and exported .xml file, to see if I can determine the issue. I'll post back with anything I see, and will provide you with any data you might request to assist in debugging.

Just had a thought...I may be able to remotely log into the home machine and try some tests that way. I'll do so if I find time.

Again, thanks for all the effort thus far...

...chico
find quote
devkid Online
Senior Member
Posts: 147
Joined: Jul 2011
Reputation: 4
Post: #102
Sure, you are welcome. Feel free to report back when you have time. Also big thanks for your support!

Btw, I added "Steve Jobs: The Lost Interview" to my library using a "faked" avi-file. For me the watched state import for that movie from the XML worked well. So I guess special characters are not the problem in general... Lets see Wink
find quote
chicowoodhill Offline
Junior Member
Posts: 35
Joined: Jun 2012
Reputation: 0
Post: #103
(2013-04-21 12:05)devkid Wrote:  Sure, you are welcome. Feel free to report back when you have time. Also big thanks for your support!

Alas, haven't had any real time to dive into the logs. Nor will I in the next month as I'll be on the road constantly.

However, the anomalies I'm experiencing may well be something wrong with one of my libraries, not this script. There are some weird things in my debug logs, and until I understand them I can't say whether or not the script is missing something or whether my library is throwing something strange at it.

If I do find that the script is having issues with something, I'll post back. Again, thanks for the effort. I'm sure a lot of folks will make use of it until it becomes an imbedded feature of XBMC.
find quote
schapplm Offline
Junior Member
Posts: 10
Joined: Apr 2013
Reputation: 0
Post: #104
Unfortunately I found the addon script.watched.states from devkid too late
I wrote a similar addon which supports XBMC Frodo. Forum Thread: http://forum.xbmc.org/showthread.php?tid=164652
I hope this helps someone (advantage: autostart without user interaction, incremental update with database instead of xml file, identification by imdbnumber and thetvdb-number and not by name).
(2013-04-16 22:50)pettergulbra Wrote:  Would it be possible to have this run on two machines to sync the watched list between them?
It does this too
(This post was last modified: 2013-05-11 23:32 by schapplm.)
find quote
Kaitlyn2004 Online
Senior Member
Posts: 217
Joined: Jun 2011
Reputation: 0
Post: #105
I exported in Eden and upgraded to frodo. Trying to import and i get script failed

In xbmc.log, its showing

unimplemented method: executehttpapi::XBMCAddon::xbmc::executehttpapi(...)

Does this work in Frodo? I've lost a whole bunch of watched status upgrading and I want to get it back! Sad
find quote
devkid Online
Senior Member
Posts: 147
Joined: Jul 2011
Reputation: 4
Post: #106
Try this version:
http://forum.xbmc.org/showthread.php?tid...pid1401643

Sorry to say, but it is using a different XML format so I am afraid you wont be able to import your previously exported watched data with it.
find quote
hop6919 Offline
Junior Member
Posts: 12
Joined: Feb 2012
Reputation: 0
Post: #107
If you're using Windows you can use my .net app to import the old watched.xml file into your new database, then use the new add-on to export to the new format XML file.
find quote
Kaitlyn2004 Online
Senior Member
Posts: 217
Joined: Jun 2011
Reputation: 0
Post: #108
(Yesterday 21:17)devkid Wrote:  Try this version:
http://forum.xbmc.org/showthread.php?tid...pid1401643

Sorry to say, but it is using a different XML format so I am afraid you wont be able to import your previously exported watched data with it.

I'll give that one a try...

(Yesterday 21:32)hop6919 Wrote:  If you're using Windows you can use my .net app to import the old watched.xml file into your new database, then use the new add-on to export to the new format XML file.

What .net app is this?
find quote
hop6919 Offline
Junior Member
Posts: 12
Joined: Feb 2012
Reputation: 0
Post: #109
Quote:What .net app is this?

Take a look at my previous post:

http://forum.xbmc.org/showthread.php?tid...pid1388484

I've been happily using this app for a while now - let me know if you have any problems.
find quote
Kaitlyn2004 Online
Senior Member
Posts: 217
Joined: Jun 2011
Reputation: 0
Post: #110
(Yesterday 21:17)devkid Wrote:  Try this version:
http://forum.xbmc.org/showthread.php?tid...pid1401643

Sorry to say, but it is using a different XML format so I am afraid you wont be able to import your previously exported watched data with it.

Yahoo! It LOOKS like it has worked! Thanks!
find quote
Post Reply