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.
[RELEASE] Watched Data Export/Import - Programs Addon
acandido
Member+ Posts: 44 Joined: Feb 2011 Reputation: 0 Location: Toronto |
2012-05-18 03:55
Post: #11
|
| find quote |
Fox
Senior Member Posts: 129 Joined: Oct 2003 Reputation: 1 |
2012-05-18 09:24
Post: #12
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. If you find any spelling mistakes you can keep them ;)
(This post was last modified: 2012-05-18 23:47 by Fox.)
|
| find quote |
Monkeysweat
Member Posts: 52 Joined: Jun 2010 Reputation: 0 |
2012-05-21 04:11
Post: #13
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
|
| find quote |
Fox
Senior Member Posts: 129 Joined: Oct 2003 Reputation: 1 |
2012-05-21 07:59
Post: #14
Sure it would be possible with a timed script or such but why don't you use a shared database instead?
If you find any spelling mistakes you can keep them ;) |
| find quote |
Monkeysweat
Member Posts: 52 Joined: Jun 2010 Reputation: 0 |
2012-05-21 08:51
Post: #15
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
|
| find quote |
Fox
Senior Member Posts: 129 Joined: Oct 2003 Reputation: 1 |
2012-05-21 09:12
Post: #16
Well since the raspberry pi is so slow importing items into the library isn't that just a bigger reason to have a shared library on another machine? Then the quicked machine does most of the work and the raspberry only reads it.
No there's no option where the files goes, it's hardcoded to the same as the local db folder. The file is called watched.xml. But I think once you start having a big sample of watched movies/episodes you will start feeling it's slow on the raspberry pi also. Exporting/Importing to a totally different set of files is possible but you might get a lot of misses due to filename not being identical (something being worked on with tvdb id and imdb id). If you find any spelling mistakes you can keep them ;) |
| find quote |
Fox
Senior Member Posts: 129 Joined: Oct 2003 Reputation: 1 |
2012-05-25 13:59
Post: #17
Version 1.3.1
- Fixed missing count value in old files could lead to error. - Added lastPlayed info. I'm working on the tvdb id and also imdb id, but to get it to work I have to split the info into series and movies so it's a bit more work. If you find any spelling mistakes you can keep them ;) |
| find quote |
clock2113
Fan Posts: 636 Joined: Feb 2007 Reputation: 0 Location: XBMC+Unraid=Happy! |
2012-06-02 22:12
Post: #18
Last night I completely wiped my HTPC, and installed XBMCbuntu from scatch... also set up mySQL on my unRaid...
Right before the wipe, I did an export, and watched.xml was the only file I saved... Imported ~5500 watched statuses in just under a minute! ![]() Thanks for the plugin, don't know what I would have done without it!
XBMC: XBMCbuntu 12.0, with Transparency! 17.5 TB Unraid Server: 2500 movies, 8800 episodes of TV Apps: SABnzbd, Sickbeard, Couchpotato, mySQL HTPC: E6500, mAtx, 210GT Watching on: Sony 32" Bravia with lowend Sony 5.1 HTIB |
| find quote |
Fox
Senior Member Posts: 129 Joined: Oct 2003 Reputation: 1 |
2012-06-04 15:14
Post: #19
Very nice to hear that clock2113
![]() Have you noticed if there were any missing after the import? Just checking since you have quite a large collection and I'm always looking to improve the code.
If you find any spelling mistakes you can keep them ;) |
| find quote |
Monkeysweat
Member Posts: 52 Joined: Jun 2010 Reputation: 0 |
2012-06-08 15:36
Post: #20
(2012-05-21 09:12)Fox Wrote: Well since the raspberry pi is so slow importing items into the library isn't that just a bigger reason to have a shared library on another machine? Then the quicked machine does most of the work and the raspberry only reads it. Well, I've been working on setting up my shared library due to your suggestion, once i have it all figured out it should work. but your script has helped me out alot as i just ended up rescanning entire library into mysql as the 'library import' feature didn't work properly, but was nice for me just to have to import watched data to get like 500 items flagged
|
| find quote |



Search
Help