Vbscripts for automated torrent handling, plus XBMC-library update (Page 1) / Web API / µTorrent Community Forums
 

#1 2012-04-25 13:27:09

pungmunken
Member

Vbscripts for automated torrent handling, plus XBMC-library update

This is one script for automatic unpacking of finished torrents and update of XBMC-library.
And another one for removing finished torrents.

Nothing too fancy, just figured someone other than me might find 'em useful...

I figured I had a need for this after getting a Galaxy Tab and realized the benefits of controlling both uTorrent and XBMC with it and then not wanting to have to bring out a mouse every now and then to unpack and remove torrents...

Anyway, here are the scripts:
http://xeno.dyndns.biz/files/extract.vbs
http://xeno.dyndns.biz/files/remove.vbs

I've commented instructions inside the scripts. Username, password, port and directories has to be changed to yours off course... I don't really have a plan for this, as stated before, just thought it might come in handy to someone out there so enjoy!

Although I'll gladly accept any comments or ideas...

Offline

#2 2012-05-06 14:18:41

pungmunken
Member

Re: Vbscripts for automated torrent handling, plus XBMC-library update

Allright so it's time an update. Or new version or beta or whatever. Acctualy I think there might have been some kind of error in format of those other scripts in the beginning, I was editting them on the Tab and it seems it uses another ASCII-table or something than my computer. That is corrected now by the way.

Anyway, I figured I didn't realy need two scripts for these functions so I made a new one that seems to be running just fine. So far...

So here is the link:
http://xeno.dyndns.biz/files/script.vbs

And just like last once you have edit them a little to set your usernames and passwords for both uTorrent and XBMC. Also drive-letters and path's and what-not.

Also the command-line parameters are updated a bit. I put some comments in the beginning just as a reminder of wich is what while editing the file. The command-line looks like this now:
script.vbs" "%S" "%P" "%M" "%N" "%D" %I

And it is to be run when torrent change status by the way...

So enjoy... I guess ;P

Last edited by pungmunken (2012-05-06 14:19:31)

Offline

#3 2012-10-16 21:49:18

moad
Member

Re: Vbscripts for automated torrent handling, plus XBMC-library update

You sir...Are a Legend!!!!

I do a few other bits and pieces with the downloaded torrent so didn't use that part but the delete script works perfectly. I just need to add in an email notification and I am set!!

Thanks so much smile

Offline

#4 2012-10-17 14:01:21

moad
Member

Re: Vbscripts for automated torrent handling, plus XBMC-library update

Here is the code for sending email using stunnel and Blat. Put this at the end of the remove script

Dim SmtpServer
Dim EmailSender, EmailRecipient, EmailSubject
Dim EmailClient

' Set your preferences here *
' if running on the same machine smtpserver will be below otherwise point it to stunnel installation
SmtpServer                = "127.0.0.1:1099"
EmailSender                = "sender@whatever.com"
EmailRecipient        = "recipient@whatever.com"
EmailSubject        = "Your Subject"
EmailClient                = "C:\scripts\blat.exe"


Set WshShell        = WScript.CreateObject("WScript.Shell")
       
WshShell.Run EmailClient & " - -body " & WScript.Arguments(1)& " -server " & SmtpServer & " -f " & EmailSender & " -subject " & chr(34) & EmailSubject & chr(34) & " -to " & EmailRecipient, 0








Hope this helps someone smile

Offline

#5 2012-10-22 00:43:53

pungmunken
Member

Re: Vbscripts for automated torrent handling, plus XBMC-library update

Nice work!

What other bits are you doing with the torrents?

Fun to see at least someone other than me found use for these... big_smile

Offline

Board footer

Powered by FluxBB

©2013 BitTorrent, Inc. µTorrent is a trademark of BitTorrent, Inc.