• 1
  • 6
  • 7
  • 8(current)
  • 9
  • 10
  • 14
XBMCSync - Sync Watched Flag Across Multiple Boxes
0.7.4
Reply
RockDawg Wrote:I just added a 3rd pc running XBMC (Kevin-Desktop) and copied over a backup of my MyVideos34.db from a couple weeks ago. I updated the library, added the pc's info to the config.ini and ran the xbmcsync script, but it didn't update any of the movies.

Code:
kevin@XBMCLive:/home$ sudo python xbmcsync.py path
Processing frontend: LR HTPC
0 new files watched
Processing frontend: BR HTPC
VIDEO_TS.IFO appears to be new
VIDEO_TS.IFO appears to be new
VIDEO_TS.IFO appears to be new
VIDEO_TS.IFO appears to be new
VIDEO_TS.IFO appears to be new
VIDEO_TS.IFO appears to be new
VIDEO_TS.IFO appears to be new
VIDEO_TS.IFO appears to be new
VIDEO_TS.IFO appears to be new
9 new files watched
Total of 9 new files watched
Updating frontend: LR HTPC
Updating frontend: BR HTPC
Marking all files as updated

9 is the correct number of episodes that need marked as watched on Kevin-Desktop, but they didn't get marked.

You probably need to pass it the full argument. e.g. sudo python xbmcsync.py path full Also, is Kevin-Desktop even showing in the logs/output?
Reply
What I posted above was the output. The log is empty, but I presume that's because I didn't use the silent argument.

EDIT: I see what you are saying. There is no Kevin-Desktop in the code above. Let me look at something.
Reply
In post #103 I copied and pasted the wrong section. Here is the correct output:

Code:
kevin@XBMCLive:/home$ sudo python xbmcsync.py path
Processing frontend: Kevin-Desktop
VIDEO_TS.IFO appears to be new
VIDEO_TS.IFO appears to be new
VIDEO_TS.IFO appears to be new
VIDEO_TS.IFO appears to be new
VIDEO_TS.IFO appears to be new
VIDEO_TS.IFO appears to be new
VIDEO_TS.IFO appears to be new
VIDEO_TS.IFO appears to be new
VIDEO_TS.IFO appears to be new
9 new files watched
Processing frontend: LR HTPC
0 new files watched
Processing frontend: BR HTPC
0 new files watched
Total of 9 new files watched
Updating frontend: Kevin-Desktop
Updating frontend: LR HTPC
Updating frontend: BR HTPC
Marking all files as updated

When I run python xbmcsync.py full path now it says there are no new files watched. I thought that ideally we wouldn't need to run with the full argument.
Reply
Rockdawg: You should not need to run in full. So you are saying that LR HTPC and BR HTPC didnt get updated with the 9 movies that were watched on Kevin-Desktop? Can I get a copy of your xbmcsync.db and MyVideos34.db from one of the machines that didnt get the update correctly. Also the names of one or more of the movies not updates would be helpful

You are correct on the logfile. Nothing is added into it unless you run as silent at the moment. I may change that as well in the future.. not sure
Reply
tim- Wrote:Rockdawg: You should not need to run in full. So you are saying that LR HTPC and BR HTPC didnt get updated with the 9 movies that were watched on Kevin-Desktop? Can I get a copy of your xbmcsync.db and MyVideos34.db from one of the machines that didnt get the update correctly. Also the names of one or more of the movies not updates would be helpful

You are correct on the logfile. Nothing is added into it unless you run as silent at the moment. I may change that as well in the future.. not sure

No. LR HTPC and BR HTPC both have current and identical MyVideos34.db's. Kevin-Desktop has an older copy that i ran update library on in XBMC to make it current except for the watched status. It has 9 movies that are still showing unwatched that are marked as watched on teh other two machines.
Reply
Ahh.. I think I understand now. When you add a new machine for the first time you do have to run with the "full" argument. After that you can just let it do incremental updates
Reply
OK. Just so I understand it better, what is the technical difference between the regular sync and the full?

EDIT: Oh, and like i said, I tried running full afterwards and it says there are 0 new unwatched files. How do I get it updated now?
Reply
Normally, we only update the frontends with files that we find that are new on that run, or that we werent able to update a frontend with on the earlier runs (there is a flag set in the db called IsNew, so if it is set to Y we update on it)

If you run a full update, we just ignore the IsNew flag and update every frontend with every file again.. so really its the same as deleting your xbmcsync.db and starting over. It doesnt always have "new" watched files to update, so it may still say there are no "new" files.. but it will still update all of the old ones as well.

Even if it said no new, it should have updated everything
Reply
Thanks. That makes it easy to understand. And you're right about it updating everything even it says nothing new. I didn't actually check the first time because of what the output said, but I just checked and indeed everything is synced.

Thanks again!
Reply
I think I'll add in the output the number of files updated on each frontend to make that a little more logical.

Hopefully I can put some documentation together at some point also to make it all make a little more sense
Reply
This looks like a great script. I've got a couple of XBMC boxes I'd love to sync up. Any chance of getting access to this to test out?
Reply
Bueller Wrote:This looks like a great script. I've got a couple of XBMC boxes I'd love to sync up. Any chance of getting access to this to test out?

+1
Reply
Appears to be another little bug.... If the filename contains an apostrophe then it will find the new file as watched but won't update the other machines. Log is below. I've replicated it on a couple different files. I assume the special characters just need to be escaped.

2010-01-11 10:10:01,246 INFO Run using version 0.7.4
2010-01-11 10:10:01,246 INFO Processing frontend: Office-iMac
2010-01-11 10:10:01,339 INFO 0 new files watched
2010-01-11 10:10:01,339 INFO Processing frontend: AppleTV-Bedroom
2010-01-11 10:10:01,447 INFO House.M.D.S01E03.Occam's.Razor.720p.WEB-DL.h.264-LP.mkv appears to be new
2010-01-11 10:10:01,501 INFO 1 new files watched
2010-01-11 10:10:01,501 INFO Processing frontend: Matt-MBP
2010-01-11 10:10:01,613 INFO 0 new files watched
2010-01-11 10:10:01,613 INFO Processing frontend: Mac-Mini
2010-01-11 10:10:01,713 INFO 0 new files watched
2010-01-11 10:10:01,714 INFO Total of 1 new files watched
2010-01-11 10:10:01,855 INFO Updating frontend: Office-iMac
2010-01-11 10:10:01,867 INFO Updating frontend: AppleTV-Bedroom
2010-01-11 10:10:01,921 INFO Updating frontend: Matt-MBP
2010-01-11 10:10:01,937 INFO Updating frontend: Mac-Mini
2010-01-11 10:10:01,966 INFO Marking all files as updated
Reply
Another small feature request.... If possible can you output the command that was used to invoke the script to the log file? I have my cron set to run incremental syncs every 10 minutes but do a full sync once a day.
Reply
  • 1
  • 6
  • 7
  • 8(current)
  • 9
  • 10
  • 14

Logout Mark Read Team Forum Stats Members Help
XBMCSync - Sync Watched Flag Across Multiple Boxes0