Windows HOW-TO get uTorrent to tell XBMC to update its library

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
watzen Offline
Fan
Posts: 459
Joined: Jan 2007
Reputation: 10
Location: Sweden
Post: #41
one800higgins Wrote:I have an issue.

My main PC is always on, running uTorrent and this script.
My HTPC is always on, running XBMC. That PC is never set to sleep.

If I'm on my HTPC and watching shows or something, this script runs perfect. However, when I leave my HTPC for an extended period of time (ie, overnight), than the script runs an error on my main PC and acts as if XBMC isn't even on. I come back to my HTPC and XBMC is in a frozen state. It requires me to kill the process.

This didn't happen before I implemented this script. Any idea what could be causing this?

No I havhaven't got a clue what it could be. Maybe if you make a debug log when it happens, someone might be able to tell what is happening. Perhaps it is something with to many requests at the same time or something. I haven't had any problems with that though. But I run uTorrent on the same computer as xbmc.

  • Livingroom - C2D E8400, P5N7A-VM on a Samsung 46" LE46M86 FullHD via HDMI
  • Kitchen - ASRock 330 HT Displayed on a Samsung Lapfit 22" dual touch screen LD220Z
  • Bedroom - LG Laptop on a 32" tv
find quote
one800higgins Offline
Member
Posts: 94
Joined: Jan 2010
Reputation: 0
Post: #42
Odd. Yea I pulled the log from last night and around 4am, the file just ends. No error, no exiting out of the program, no explanation as to why it froze. It's very strange to me.
find quote
watzen Offline
Fan
Posts: 459
Joined: Jan 2007
Reputation: 10
Location: Sweden
Post: #43
one800higgins Wrote:Odd. Yea I pulled the log from last night and around 4am, the file just ends. No error, no exiting out of the program, no explanation as to why it froze. It's very strange to me.

Maybe you could check the windows logs and see if anything shows up there.

  • Livingroom - C2D E8400, P5N7A-VM on a Samsung 46" LE46M86 FullHD via HDMI
  • Kitchen - ASRock 330 HT Displayed on a Samsung Lapfit 22" dual touch screen LD220Z
  • Bedroom - LG Laptop on a 32" tv
find quote
one800higgins Offline
Member
Posts: 94
Joined: Jan 2010
Reputation: 0
Post: #44
Well, I turned off your script and it was still doing the same thing, so it wasn't your script causing it. It's just odd timing that it started doing this when I started using this script haha. Not sure why or what was causing it (couldn't find any issues in Windows logs and XBMC logs just ended). I was using a nightly build so I just went back to the main build for the time being.
find quote
Raqueem Offline
Junior Member
Posts: 32
Joined: Oct 2008
Reputation: 0
Post: #45
as i have modified the update.vbs with your last modifications, it does show me the status of the torrents when they queu or finish; but the library doesn't update.
find quote
watzen Offline
Fan
Posts: 459
Joined: Jan 2007
Reputation: 10
Location: Sweden
Post: #46
Raqueem Wrote:as i have modified the update.vbs with your last modifications, it does show me the status of the torrents when they queu or finish; but the library doesn't update.

as the update procedure is right after the "notification on finish"-routine and the notification is working there's nothing wrong with the connection. So I guess that the problem resides in your "sourcePath" or Labels don't add upp. What do you label your torrent with? and what is your sourcePath?

  • Livingroom - C2D E8400, P5N7A-VM on a Samsung 46" LE46M86 FullHD via HDMI
  • Kitchen - ASRock 330 HT Displayed on a Samsung Lapfit 22" dual touch screen LD220Z
  • Bedroom - LG Laptop on a 32" tv
(This post was last modified: 2011-03-06 04:56 by watzen.)
find quote
Raqueem Offline
Junior Member
Posts: 32
Joined: Oct 2008
Reputation: 0
Post: #47
watzen Wrote:as the update procedure is right after the "notification on finish"-routine and the notification is working there's nothing wrong with the connection. So I guess that the problem resides in your "sourcePath" or Labels don't add upp. What do you label your torrent with? and what is your sourcePath?

Well in the beginning is was working.. it's until i have changed the settings in utorrent that I didn't get the notice anymore.

I'm trying everything again from scratch.. Wink


xbmcConnection = "http://xbmc:xbmc@192.168.1.9:59000"

sourcePath = "c:\DLDONE\"
find quote
njumlin Offline
Member
Posts: 95
Joined: Oct 2010
Reputation: 0
Location: Sweden
Post: #48
watzen, have you got this script working with TV-series? My library wont update TV-Shows using the HTTP xbmcCmd. Works fine for movies tho...

I mean using a single tv-show, as in http://xbmcaddress/xbmcCmds/xbmcHttp?command=ExecBuiltIn(UpdateLibrary(video,"K:\TV-Series\Show\Season 1"/))
(This post was last modified: 2011-03-07 11:14 by njumlin.)
find quote
Alethenorio Offline
Member
Posts: 85
Joined: May 2010
Reputation: 0
Post: #49
Thanks for the idea.

One little thing I might mention, if you don't wanna have to change your utorrent labels to suit the script, you can change the script to generic.

Utorrent is able to pass the directory of the downloaded file (%D) which you can run the update on without having to bother about what labels you are using and with very minimal changes in the script.
find quote
watzen Offline
Fan
Posts: 459
Joined: Jan 2007
Reputation: 10
Location: Sweden
Post: #50
njumlin Wrote:watzen, have you got this script working with TV-series? My library wont update TV-Shows using the HTTP xbmcCmd. Works fine for movies tho...

I mean using a single tv-show, as in http://xbmcaddress/xbmcCmds/xbmcHttp?command=ExecBuiltIn(UpdateLibrary(video,"K:\TV-Series\Show\Season 1"/))

yes, however I only update "K:\TV-Series\Show\" since you haven't set content for that specific folder (Season 1). And unless it's a typing error on your part. the http-adress you wrote is wrong, it should be:
Code:
http://xbmcaddress/xbmcCmds/xbmcHttp?command=ExecBuiltIn(UpdateLibrary(video,"K:\TV-Series\Show\Season [b]1\"[/b]))

  • Livingroom - C2D E8400, P5N7A-VM on a Samsung 46" LE46M86 FullHD via HDMI
  • Kitchen - ASRock 330 HT Displayed on a Samsung Lapfit 22" dual touch screen LD220Z
  • Bedroom - LG Laptop on a 32" tv
find quote
Post Reply