• 1
  • 8
  • 9
  • 10(current)
  • 11
  • 12
  • 14
XBMCSync - Sync Watched Flag Across Multiple Boxes
tim- Wrote:I can assure you not EVERYONE has a VIDEO_TS folder as I dont =) Its possible I am alone in that one, but I dont really see a reason to have them in folders instead of a single file container.

I also keep my DVDs as ISO images, so you're not alone.

BTW, I tracked down your website and set up XBMCSync on my system last night. I hope you don't mind. I promise not to bug you with support questions. Wink

It seems to be working well so far. Thanks again for the work you have put into this.
Reply
herg:

No worries, feel free to post for support. I was just delaying so I could throw some documentation together =)

As for anyone else, feel free to grab it from

http://www.losingcable.com/XBMC/xbmcsync/

Documentation and a decent looking web page will come as time permits =)

EDIT: Also curious, how did you track it down (just curious, I am glad you were able to find it and get it going)
Reply
Question on this script.

I have a few frontends some xbox, some not. I don't always keep the xbox frontends running, will your script fail gracefully if one of the frontends is not up when it tries to find the IP? I'd like to set it up so that if the box happens to be on its info will get updated, but if not then it is no big deal. I figure if I run the script every 15-20 minutes there is a good chance it will hit it when it is on.

Thanks.
Reply
robweber Wrote:Question on this script.

I have a few frontends some xbox, some not. I don't always keep the xbox frontends running, will your script fail gracefully if one of the frontends is not up when it tries to find the IP? I'd like to set it up so that if the box happens to be on its info will get updated, but if not then it is no big deal. I figure if I run the script every 15-20 minutes there is a good chance it will hit it when it is on.

Thanks.

Yes, he does a great job handling this type of situation. I have 4 xbmc machines, 2 of which are not on much but when they are it updates them no problem.
Reply
Hi there,

Just came across this thread and am planning to try out your script in the next couple days as time permits. I had a couple of questions and comments.

I have 2 Linux HTPC's and one xbox. On the Linux side of things I use NFS to access my server where my media is stored so on the two Linux machines the paths are identical. However on the xbox I use samba so the paths will be similar but slightly different to the Linux frontends. Will this pose a problem?

Secondly, I noticed some people mentioning their machines are in "sleep" mode when not in use and hence would not be updated in this state. While I know this is not a huge deal I was thinking a possible solution to this would be to possibly "ping" each machine before updating to see if it is accessible or not. If it responds to a ping then great let's update it. It it does not respond to a ping we could try sending a "Wake on Lan" request and then try pinging the machine again after an interval. Might be workable but I am no programmer so not sure really if that is feasible. Just an idea.

Thanks for sharing your programming with us.

Kevin
Reply
ould Wrote:Hi there,

Just came across this thread and am planning to try out your script in the next couple days as time permits. I had a couple of questions and comments.

I have 2 Linux HTPC's and one xbox. On the Linux side of things I use NFS to access my server where my media is stored so on the two Linux machines the paths are identical. However on the xbox I use samba so the paths will be similar but slightly different to the Linux frontends. Will this pose a problem?

Do you have any DVDs stored in their VIDEO_TS directories? If you dont, then you will not need to worry about the path at all. If you do, then yes, that would pose a problem for you today. I am hoping to release a new version either tonight or tomorrow night that will resolve that issue.

Quote:Secondly, I noticed some people mentioning their machines are in "sleep" mode when not in use and hence would not be updated in this state. While I know this is not a huge deal I was thinking a possible solution to this would be to possibly "ping" each machine before updating to see if it is accessible or not. If it responds to a ping then great let's update it. It it does not respond to a ping we could try sending a "Wake on Lan" request and then try pinging the machine again after an interval. Might be workable but I am no programmer so not sure really if that is feasible. Just an idea.

We will just perform the update once that machine is back online. I would recommend running the script from a cronjob every 10-15 minutes and that way even if a machine is off, it will be updated within 10-15 minutes of coming back on.

Quote:Thanks for sharing your programming with us.

Kevin

No problem, glad people are finding it useful!
Reply
Okay.. so version 0.9 is posted. Some major changes to this one

1) The path argument is gone
2) All runs compare the filename and the title (either of the episode or movie)

There were some major logic changes since we have to search for movies and tv shows separately. Please test and let me know how it goes..

Make sure you delete your xbmcsync.db before starting as the DB has changed

Also, backup your MyVideos34.db ...
Reply
tim- Wrote:Okay.. so version 0.9 is posted. Some major changes to this one

1) The path argument is gone
2) All runs compare the filename and the title (either of the episode or movie)

There were some major logic changes since we have to search for movies and tv shows separately. Please test and let me know how it goes..

Sounds good! Will test tomorrow!
Reply
I've been running this for about half a day and seems to be working great!
Reply
Good deal. I think i will start cleaning this one up and then target it for an "official" release
Reply
tim- Wrote:Also curious, how did you track it down

I looked at your post history and saw the zm plugin URL. From there it was easy.

I did have an odd situation today. I'm still running v0.8, so it might be fixed already.

I watched about 30 minutes of a 2 hour DVD ISO, then stopped, and it got marked as watched on both my machines. I'm guessing that XBMC increased the play count and xbmcsync saw that as a newly watched video.

Edit: Actually, it now appears that XBMCSync has nothing to do with this. I was trying to repeat it, and the movie was marked watched without XBMCSync having even run again.
Reply
herg: Okay, let me know if you run into any other issues. Thanks

tim-
Reply
I've run into an issue where xbmcsync isn't updating correctly for some reason. Can't seem to narrow it down. It didn't update the file NCIS.S07E12.720p.HDTV.X264-DIMENSION.mkv correctly. Here is a section of my log: http://pastebin.com/f42053161 It seems to be doing something very strange starting 2010-01-17 14:10:01,497 (line 2267 of pastebin log). It also seems to start picking up crcl-baby.mama.dvdr.iso (which was newly watched so that's correct) as new every single time if runs which I haven't seen happen before.
Reply
mtehonica:

Very odd indeed. I am guessing the program is erroring out on something and its not getting logged for some reason. Can you try running it manually instead of from the cronjob with the same arguments?

I just went to check my log and make sure I wasnt getting weird errors and realized I am still running 0.8.. doh!
Reply
tim- Wrote:mtehonica:

Very odd indeed. I am guessing the program is erroring out on something and its not getting logged for some reason. Can you try running it manually instead of from the cronjob with the same arguments?

I just went to check my log and make sure I wasnt getting weird errors and realized I am still running 0.8.. doh!

Lines 3472 and 3536 of that pastebin log shows what happens when I ran it manually. Seemed to run fine. But line 2745 looks like something really went wrong but not sure what.
Reply
  • 1
  • 8
  • 9
  • 10(current)
  • 11
  • 12
  • 14

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