Page 1 of 2
Auto-Upload to torrent server.. help??
Posted: August 16th, 2010, 12:51 pm
by Toady
Hi guys,
I've been searching high and low for a post-processing script that once a file is downloaded, it will make a torrent of the file and upload it to a local server I have running on my internal network. Reasons for something like this is some files get auto downloaded at like 5am so I'm usually asleep once it's done so am unable to upload it and would like to have it up asap so all the guys on my network can grab it straight away.
Currently I'm using utorrent as my client.
I don't have much knowledge with scripting so would really appreciate it if someone could come up with this sort of script as Im sure there are more guys looking for something like this.
I have also used the search function and it didn't return anything for my query.
Thanks again
Re: Auto-Upload to torrent server.. help??
Posted: August 16th, 2010, 4:46 pm
by sander
Have you even done this manually? If so which tracker, which web server and which torrent client did you use ... ?
Re: Auto-Upload to torrent server.. help??
Posted: August 16th, 2010, 5:09 pm
by Toady
If you mean have i ever created these torrents manually... yes but at 5am I'm unable to do so since im asleep.
Tracker is:
http://torrents.ctwug.za.net/announce.php
http://tt1.ctwug.za.net/announce
Web server:
http://torrents.ctwug.za.net
Torrent Client:
uTorrent 2.0.2
I assume these are the details you are asking
Re: Auto-Upload to torrent server.. help??
Posted: August 17th, 2010, 12:10 am
by sander
See below, and included torrent.
Code: Select all
sander@quirinius:~$ mktorrent v4_v6_translation.pdf -a http://torrents.ctwug.za.net/announce.php
mktorrent 1.0 (c) 2007, 2009 Emil Renner Berthing
Hashed 2 of 2 pieces.
Writing metainfo file... done.
sander@quirinius:~$ ls -al v4_v6_translation.pdf
v4_v6_translation.pdf v4_v6_translation.pdf.torrent
sander@quirinius:~$ ls -al v4_v6_translation.pdf*
-rw-r--r-- 1 sander sander 414017 2007-11-02 20:37 v4_v6_translation.pdf
-rw-r--r-- 1 sander sander 241 2010-08-17 06:56 v4_v6_translation.pdf.torrent
sander@quirinius:~$
Re: Auto-Upload to torrent server.. help??
Posted: August 17th, 2010, 3:09 am
by rascalli
So basicly you want an autoupload script to your tracker that does : ?
* Watch for new contect in a folder or start the script after download is done
* Make a .torrent of a folder
* Upload the .torrent to your torrentwebsite
* download the upload .torrent to your utorrent & start seeding ?
If so .. this is not very easy to make ... some private sites have it .. but it costs a lot of money
(just search for it on the web , ad you will see the prices)
Re: Auto-Upload to torrent server.. help??
Posted: August 17th, 2010, 7:21 am
by Toady
rascalli wrote:
So basicly you want an autoupload script to your tracker that does : ?
* Watch for new contect in a folder or start the script after download is done
* Make a .torrent of a folder
* Upload the .torrent to your torrentwebsite
* download the upload .torrent to your utorrent & start seeding ?
If so .. this is not very easy to make ... some private sites have it .. but it costs a lot of money
(just search for it on the web , ad you will see the prices)
Yup, that's basically it. A guy on my network has a script which he made for another sabnzbd server running on the network but for some reason doesn't want to share it. I'll just keep looking, if i find one I'll post it here.
Thanks anyways
Re: Auto-Upload to torrent server.. help??
Posted: August 17th, 2010, 10:03 am
by sander
So what you do is download something via Usenet/SABnzbd, and then internally share it via Bittorrent? And "internally" means in-home, neighbour-LAN, campus, or something like that?
Re: Auto-Upload to torrent server.. help??
Posted: August 18th, 2010, 12:26 pm
by Toady
sander wrote:
So what you do is download something via Usenet/SABnzbd, and then internally share it via Bittorrent? And "internally" means in-home, neighbour-LAN, campus, or something like that?
Yes exactly that. It's over a community wireless network with 100+ users
Re: Auto-Upload to torrent server.. help??
Posted: August 19th, 2010, 12:16 pm
by sander
Sounds not too difficult. Pseudocode:
Code: Select all
as soon as SAB has completed a download:
create a .torrent for the downloaded file
copy the downloaded file to right torrent directory (on local machine)
copy .torrent to webserver and/or tracker
start torrent client with .torrent as parameter
I think this is a 10 line script (with a few dozen lines of error checking) which I could create on Linux if I had access to a webserver and tracker. The problem is that this is probably not useful for you; you use utorrent so probably Windows as OS, and it all depends on the peculiarities to your web server and tracker
Re: Auto-Upload to torrent server.. help??
Posted: August 19th, 2010, 5:47 pm
by markus101
Doesn't seem to be too impossible, might be a bit more than 10 lines + debugging in C#, but if I get a chance I'll give this a shot.
I assume this is all Windows based? If not I'm barking up the wrong tree.
-Markus
Re: Auto-Upload to torrent server.. help??
Posted: August 20th, 2010, 10:27 pm
by markus101
Try Sab2Torrent here:
http://code.google.com/p/sabscripts/
-Create a Torrent
-Optionally send it to uTorrent
Set your variables and you're off. If you want support for uploading to a server, let me know how the transfer needs to work... local file system, SMB (Windows Share), FTP and I'll see what I can do.
For TV Shows the created torrent would contain all the files in the season folder (assuming season sorting is enabled and the video files all end up in the same directory). Let me know how it works for you, I did some testing and so far so good, but please let me know if you find any issues.
-Markus
Re: Auto-Upload to torrent server.. help??
Posted: August 21st, 2010, 3:15 am
by rascalli
That looks good
Normally you need to upload the .torrent by html
Add info about the torrent (most is in nfo)
Then redownload the .torrent again
And start seedng that downloaded torrent in your client
Re: Auto-Upload to torrent server.. help??
Posted: December 29th, 2010, 1:06 pm
by janhouse
You could probably try torrent auto uploader by Janhouse
http://www.janhouse.lv/uploader/
Re: Auto-Upload to torrent server.. help??
Posted: January 11th, 2011, 12:18 am
by NetCash
I use torrent-uploader.com. could be an interest to you
Re: Auto-Upload to torrent server.. help??
Posted: February 19th, 2011, 6:36 pm
by Toady
markus101 wrote:
Try Sab2Torrent here:
http://code.google.com/p/sabscripts/
-Create a Torrent
-Optionally send it to uTorrent
Set your variables and you're off. If you want support for uploading to a server, let me know how the transfer needs to work... local file system, SMB (Windows Share), FTP and I'll see what I can do.
For TV Shows the created torrent would contain all the files in the season folder (assuming season sorting is enabled and the video files all end up in the same directory). Let me know how it works for you, I did some testing and so far so good, but please let me know if you find any issues.
-Markus
Hi Markus,
Thanks for the script, looks really good. As for support for uploading, it seems a similar guy has just used a make torrent script like yours and somehow his utorrent watches a folder for new .torrent files and uploads it to the torrent server. I'll see if i can google this.
Torrent creation works like a charm... now anyone know where a windows script to upload a torrent and then re-download it can be found... google is proving fruitless
Basically need something like this:
http://forums.sabnzbd.org/index.php?topic=6244.0 but for windows enviroment as thats where all my files are