Posts: 110
Joined: Oct 2009
Reputation:
0
tim-
Senior Member
Posts: 110
I decided last night I needed to write a script to sync the watched flag across all of my XBMC boxes. I have this up and working for my situation, but if there are other folks that are interested I would be glad to try and extend it to meet some other folks needs.
Currently I just have this running outside of XBMC in a cronjob. Every 30 minutes, it connects to all of my machines, downloads any updates, updates its internal database and then pushes the updates out to all of the other machines.
If anyone else is interested, I would be glad to work with a few folks to make sure it works as expected outside of my environment. I have only tested on Camelot running on Ubuntu 9.10.
Thanks
Tim
Posts: 10
Joined: Mar 2009
Reputation:
0
maersk
Junior Member
Posts: 10
Tim- i love this idea and should use it if i only had 2 XBMC boxes. But the idea is good and maybe in future a 2nd box !!!!!!!.
Thanks for your work.
Bob
Posts: 1,546
Joined: Jun 2005
Reputation:
1
I would love to try this! I have been waiting for a feature like this (actually a central db has been my wish) for a long time. I must confess that I don't know much about Linux, so I'd probably need some help getting it up and running. I have 2 boxes running XBMC Live. All my media is on a central server. Let me know if you think it will work for me.
Posts: 28
Joined: Mar 2009
Reputation:
0
Hello,
It is looking like a good idea.
But would it works across platform?
My setup is as follow, I have an NAS where my movies and xbmc program are, so no need for syncronisation (I launch the application via a map network drive and use the -p option)
Now sometimes i am using a Mac with localy installed xbmc
And your script can be useful if we can synchronize cross platform.
Posts: 110
Joined: Oct 2009
Reputation:
0
tim-
Senior Member
Posts: 110
RockDawg: It should be no problem getting you up and running. I'll shoot you a PM to get you the info needed and we can get your testing started
michaelcdf: Yes, since I am using the web API any version of XBMC should work fine. I have only tested the central process running on a linux box, but it should run on any platform that supports python. I will make a windows exe at some point as well. I'll shoot you a PM as well
Posts: 106
Joined: Feb 2008
Reputation:
0
This is a great idea IMO! I've been waiting for a centralized DB structure for a long time but this would be fine for me. I have a Mac Mini, ATV, iMac and MBP that I would like to keep in sync. Can I get in on the testing?
Posts: 110
Joined: Oct 2009
Reputation:
0
tim-
Senior Member
Posts: 110
mtehonica: sure thing. I will shoot you a PM with the info to download and try it out. I am redoing some parts now so hopefully I'll have another update for it tomorrow or so.
An additional thing to note is that you dont have to use the same library on all of the machines. I have one that is just a childrens library but it still syncs the watched flag on anything common between them.
Posts: 110
Joined: Oct 2009
Reputation:
0
tim-
Senior Member
Posts: 110
It probably needs plenty of testing =)
That is correct, all it does is mark things as watched, never unwatched. If you ever have the need to bring a new machine online that has nothing after the first update there is an option to run it with 'fullsync' which will do a total update to get all boxes 100% in sync as well by aggregating what every box has as marked and the pushing it out to everyone instead of doing an incremental update.
Posts: 106
Joined: Feb 2008
Reputation:
0
I'm not an expert by any means, but that looks like a python issue, not an issue with the script. I'm running the same script on my Ubuntu machine and it works perfect. What version of python are you running?