nslr Posted May 22, 2011 Report Share Posted May 22, 2011 Hi, everyone!For some time now, I've been missing the possibility to easily auto-load torrents into uTorrent and label these torrents with no user interaction.Reading through these forums, I see, that I'm not alone, but with no other solutions readily available, I decided to make a small app of my own!It's written in C#.net 3.5, and is as open-source as the libraries I use (Only Jayrock at the moment).Setup:When this small console application is started the first time, users must input the following:uTorrent WebUI username, password and host-information (IP:Port).If the IP is different from "localhost" or "127.0.0.1", the user must also input a local directory for the app to look for torrents in.This means, that it is possible to run this app on a different PC than the one hosting uTorrent!NOTE: This functionality has only been partially tested on a local network, and not at all over the internet. Theoretically, both should work just fine.How it works:Per default, if running on the PC with uTorrent, the app looks for new torrents in SUBFOLDERS of the "Directory to watch" folder. Whenever a new .torrent-file is added to ANY subfolder, the torrent is loaded into uTorrent, and given the label SUBFOLDERNAMEA little image to explain: Source and binaries available here:Source@GITHubBinariesWhen downloading the binaries, just extract the contents to any folder and run "uAL.exe"I'm not planning on making it any more advanced! If anyone would like to, please port it to PERL or Python for better multi-platform support.Only tested on Windows 7 (both 32 and 64 bit), using the latest version of uTorrent 3Updates:2011-06-05+ [feature/setting] Stop the torrent when done downloading+ [debug] Tell the user what went wrong when failing to connect+ [bugfix] Several bugs ironed out. Link to comment Share on other sites More sharing options...
wsts Posted June 1, 2011 Report Share Posted June 1, 2011 I've tried running this on the local and a remote machine with no luck. After entering the settings I get "Could not connect to uTorrent. Please exit this program, start uTorrent, and try again."Win 7 64-bit | Utorrent 2.2.1 | Web UI 0.382 Link to comment Share on other sites More sharing options...
nslr Posted June 4, 2011 Author Report Share Posted June 4, 2011 Ah, my bad for not speciying.. I haven't tested this on other than uTorrent 3.0 (lastest version alpha/beta) - so there may be some trouble with uTorrent 2.x, which might use other connection-methods. I'm primaryli developing this for personal usage, but if I get the time, I'll look into backwards compatibility Link to comment Share on other sites More sharing options...
nslr Posted June 5, 2011 Author Report Share Posted June 5, 2011 Updated, added a setting and fixed some bugs.If you experience connection-issues on uTorrent 2.x, please let me know what the debug info says, and I'll take a look at it..Been getting a little excited about this software, so I'm currently working on a WPF gui for the app.. Don't expect it to be ready tomorrow (or in a month) though Link to comment Share on other sites More sharing options...
wsts Posted June 5, 2011 Report Share Posted June 5, 2011 Tried it again with 2.2.1. I'm sure with 3.0 due out soon this may not be worth the effort to fix, but here's what happened this time around:Connecting to 127.0.0.1:8080Could not connect to uTorrent. Please exit this program, start uTorrent, and try again.######### Error: Length cannot be less than zero.Parameter name: length# Source: mscorlib######## Link to comment Share on other sites More sharing options...
nslr Posted June 5, 2011 Author Report Share Posted June 5, 2011 Hmm, I've just skimmed my code, and I'm not reading any length properties anywhere.. So dunno what's wrong, tbh Link to comment Share on other sites More sharing options...
ace0174 Posted June 7, 2011 Report Share Posted June 7, 2011 Tried it again with 2.2.1. I'm sure with 3.0 due out soon this may not be worth the effort to fix, but here's what happened this time around:Connecting to 127.0.0.1:8080Could not connect to uTorrent. Please exit this program, start uTorrent, and try again.######### Error: Length cannot be less than zero.Parameter name: length# Source: mscorlib########I just tried it and got the same error. Locally and remotely.I see you started working on the GUI (judging by the source at GIT), very nice!Could you take a look at this potential bug? Link to comment Share on other sites More sharing options...
Eiktyrner Posted June 8, 2011 Report Share Posted June 8, 2011 Thanks, this was exactly what I have been looking for!I couldnt get it to work when using 127.0.0.1 though. I didn't have time to look over the code that much so i just wrote a quick fix for it. The problem was it couldnt get the right directory from GetDownloadDir from TorrentAPI. Might take a look tomorrow and see if i can find why.Running 3.0 build 25345 [32bit] on Windows 2008 R2. I would try with the latest build if it didnt get stuck on the "Downloading app.." screen. Link to comment Share on other sites More sharing options...
nslr Posted June 8, 2011 Author Report Share Posted June 8, 2011 Hmm, sounds a bit strange - what it actually does is, if you type in "localhost" it replaces it with "127.0.0.1".... sooo typing 127.0.0.1 should be all good :/Anywho, about the uTorrent 2.x bug, I'm not gonna get any time to look at it in a forseeable future, I'm afraid.. Chances are, v3.x goes out of beta before i get the time.. Sorry about that Link to comment Share on other sites More sharing options...
Eiktyrner Posted June 8, 2011 Report Share Posted June 8, 2011 Yeah i noticed that. But i get the same result if i type 127.0.0.1 as if i type localhost. The problem lies in GetDownloadDir. But overall its really unstable, crashed with System.IO.FileNotFoundException when i put a new file for it to download. I'll see if i can get the latest build running on my server, might solve that problem. Maybe the changelog can give me some input on why it crashes so much on this build of utorrent...This should be something that's already included in uTorrent though. For me it would be a deal breaker, i would go with what ever software that could do this right away.Cheers! Link to comment Share on other sites More sharing options...
adam_purkis Posted August 6, 2011 Report Share Posted August 6, 2011 hi, this looks like a brilliant little app that i need for now. i assume this function still isnt built into utorrent?anyway, i have downloaded this software and it seems to work brilliant, but.. the only problem is, the command prompt window has to be open for it to work, is there anyway to start this hidden? and also can i do this so that it automatically starts with utorrent?thanks for your help! Link to comment Share on other sites More sharing options...
duerra Posted September 11, 2011 Report Share Posted September 11, 2011 [nevermind]Thanks so much for this, it's exactly what I've been looking for! Link to comment Share on other sites More sharing options...
Darkside138 Posted October 19, 2011 Report Share Posted October 19, 2011 I registered just to say thanks and you rock! I've been looking for this kind of functionality for a long time. Can't believe the uTorrent team hasn't put this in yet, but you answered with a great little app! Link to comment Share on other sites More sharing options...
dukedizel Posted November 7, 2011 Report Share Posted November 7, 2011 The program finds the labels in a folder "Automaticaly load .torrents from:" does not autostart from subfoldersThis must be how you set up?ut 3.0 b 25824 [32-bit] Link to comment Share on other sites More sharing options...
shinjidf Posted April 27, 2012 Report Share Posted April 27, 2012 nslr,thank you for your wonderful program! Just found a bug: if the label has spaces or underline, the program crashes.Example:"mymovies" - ok"my_movies" - crashes"my movies" - crashes Link to comment Share on other sites More sharing options...
snic Posted June 23, 2012 Report Share Posted June 23, 2012 I don't know what you mean with "Directory to watch". Do you mean the place where you download .torrent files, or the directory where the actual files are downloaded (movies, music..). If it is the first one, as far as i know, you can only have one directory which is monitored by utorrent for .torrent files. Or do you mean that we should download .torrent files in the same directory as the torrent content itself? Link to comment Share on other sites More sharing options...
wtfok Posted July 12, 2012 Report Share Posted July 12, 2012 Wow, this is a really useful plugin indeed. I have one feature request though. uTorrent normally deletes torrents from the watchfolder (at least, when you have that option checked). Is it possible for this program to do adapt to this option, ie deleting the torrent files when you have that option checked at the watchfolder settings? Link to comment Share on other sites More sharing options...
romprod Posted December 28, 2014 Report Share Posted December 28, 2014 Wow, this is a really useful plugin indeed. I have one feature request though. uTorrent normally deletes torrents from the watchfolder (at least, when you have that option checked). Is it possible for this program to do adapt to this option, ie deleting the torrent files when you have that option checked at the watchfolder settings? Ditto, is it possible to make ual.exe delete the loaded torrents? From what I can tell it copies them to a temp folder and then load the torrents from there. I use Utorrent to handle the .torrents once they're loaded, so I'm having to manually deal with the laoded torrents that ual.exe handles. btw great app, no idea why Utorrent.exe doesn't do this already! Link to comment Share on other sites More sharing options...
romprod Posted February 22, 2015 Report Share Posted February 22, 2015 I've found a newer version of this program which supports deleting the .torrents once they've been loaded into uTorrent. It also seems to not crash as quickly as the original version. https://github.com/irfancharania/uAL Binary https://github.com/irfancharania/uAL/archive/master.zip Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.