![]() |
Win HOW-TO get uTorrent to tell XBMC to update its library - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: Tips, tricks, and step by step guides (https://forum.kodi.tv/forumdisplay.php?fid=110) +--- Thread: Win HOW-TO get uTorrent to tell XBMC to update its library (/showthread.php?tid=87472) |
HOW-TO get uTorrent to tell XBMC to update its library - watzen - 2010-12-13 Hi I just set up the new version of uTorrent (2.2) that has the ability to always run a program when it has finished downloading a torrent. This feature is able to pass on the user set label that the torrent has. Download uTorrent So the automatic setup works like this:
Setting it up - watzen - 2010-12-17 1. Enable the http-server in XBMC ![]() ![]() 2. Change settings in uTorrent ![]() ![]() ![]() - watzen - 2010-12-17 3. Add Feed ![]() ![]() 4. Add Keywords to the autodownloader in uTorrent ![]() ![]() 5. Create the script Open up notepad and paste the code posted below Code: Dim objSvrHTTP 6. Let the magic do its thing - stoli - 2010-12-17 @watzen - Thanks for that. Now I can turn off the auto-update add-on and get real-time library updates. - watzen - 2010-12-18 Ok, so I have updated the script with the ability to send notifications as well. When the script gets one argument it sends it as an update library command and when it receives two arguments it sends those as header and message Just put c:\update\update.vbs "uTorrent - %M" "%N" in the "Run this program when a torrent changes state" box in uTorrent preferences. (this is only neccesary if you want notifications in XBMC for each time a torrent changes state, and they change state a lot. So this is not so useful) - bmcclure937 - 2010-12-24 Hmm. I wonder how to do this from Linux or from a NAS... since my torrents are downloading straight to my NAS using the embedded client ![]() - GorillaHuman - 2011-01-02 Nice one! Too bad it doesn't work for me. I'm running uTorrent at the same pc as I run XBMC. uTorrent downloads the shows to C:\Downloads\Series\[name] automatically. Their labels are Series\[name]. xbmcConnection = "http://user:[email protected]:80" (user/pass match XBMC) sourcePath = "C:\Downloads" When I type in cmd the following (to emulate uTorrent) Code: Update.vbs "Series\[name]" What am I doing wrong? - watzen - 2011-01-03 GorillaHuman Wrote:Nice one! I think you need to change the sourcePath to "C:\Downloads\" (note the trailing slash) - watzen - 2011-01-03 bmcclure937 Wrote:Hmm. I wonder how to do this from Linux or from a NAS... since my torrents are downloading straight to my NAS using the embedded client yeah, well, get your software to GET this url when finished: Code: http://user:password@ip:port/xbmcCmds/xbmcHttp?command=ExecBuiltIn(UpdateLibrary(video,pathwhereyourfilesare)) ![]() - mwkurt - 2011-01-03 Or you can just use Sickbeard to update your XBMC library by having utorrent move completed files to the directory that Sickbeard processes it's downloads from. As long as the show is listed as a Sickbeard show, the files should be processed. I believe this works the same way with Couchpotato. Mark - watzen - 2011-01-03 mwkurt Wrote:Or you can just use Sickbeard to update your XBMC library by having utorrent move completed files to the directory that Sickbeard processes it's downloads from. As long as the show is listed as a Sickbeard show, the files should be processed. I believe this works the same way with Couchpotato. I for one think that XBMC does a very good job in recognizing my downloads. So I rather skip any extra software that needs to process my files/manage them. Since if any extra processing occurs after uTorrent is finished (changing filenames, moving or whatever), I would not be able to seed anymore. - zilexa - 2011-01-23 I totally agree. There is no reason at all to use Sickbeard if you get your series/movies via Torrents since you will still be using uTorrent and it has the RSS downloader, Labels feature and now "run program..." features. Sickbeard is only useful if you use newsgroups/usenet. - e2zippo - 2011-01-24 This looks awesome but i I have a few questions. 1: How to I test if it's working without having to wait for a torrent to finish? My folders are setup like this My RSS-feed downloads to e:\nedladdat\tv-serier\ Utorrent moves the completed downloads to e:\ and append the label which will be Tv-Serier/Fringe or Tv-Serier\Fringe ? And is this the correct sourcepath? sourcePath = "E:\" Cheers! - watzen - 2011-01-24 e2zippo Wrote:This looks awesome but i I have a few questions. open up a command window, run->cmd->enter. then navigate to the folder where the script is in. then type "nameofscript.vbs Tv-Serier\Fringe" (without quotes). Switch over to xbmc and it should scan that folder after 10 seconds. Quote: since I run a centralized mySQL solution, I have added all my local sources as SMB sources. that requires me to use "/"'s in my path. but if you are using local sources then you should use "\"''s. So the second one should be the correct one. And the sourcepath should be as you wrote. - e2zippo - 2011-01-25 watzen Wrote:open up a command window, run->cmd->enter. then navigate to the folder where the script is in. then type "nameofscript.vbs Tv-Serier\Fringe" (without quotes). Switch over to xbmc and it should scan that folder after 10 seconds. The scan seems to be working, yay! But i just discovered something not so great, when i pause and/or resume my torrents in uTorrent i get "Windows Script Host" error window for each and every torrent that is in uTorrent right now (about 70 now ![]() It says Script: D:\Appz\update.vbs Line: 27 Char: 1 Error: The system cannot locate the resource specified Code: 800C0005 Source: msxml3.dll What's that about? And one final question, will the seeding work with this procedure? Before this i used the perl script also found on this forum and while it worked great, the moving of the files made it so they couldn't be seeded (unless i re-locate them, and that would be a real hassle for every torrent) Cheers! |