Auto-Upload to torrent server.. help??

Come up with a useful post-processing script? Share it here!
Toady
Newbie
Newbie
Posts: 8
Joined: August 16th, 2010, 12:45 pm

Auto-Upload to torrent server.. help??

Post 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
Last edited by Toady on August 16th, 2010, 1:10 pm, edited 1 time in total.
User avatar
sander
Release Testers
Release Testers
Posts: 8812
Joined: January 22nd, 2008, 2:22 pm

Re: Auto-Upload to torrent server.. help??

Post by sander »

Have you even done this manually? If so which tracker, which web server and which torrent client did you use ... ?
Please don't send me unrequested PM's; the forum is the best way to communicate.
If someone helps you, please reply to that help.
f you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
Toady
Newbie
Newbie
Posts: 8
Joined: August 16th, 2010, 12:45 pm

Re: Auto-Upload to torrent server.. help??

Post 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
User avatar
sander
Release Testers
Release Testers
Posts: 8812
Joined: January 22nd, 2008, 2:22 pm

Re: Auto-Upload to torrent server.. help??

Post 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:~$ 
Please don't send me unrequested PM's; the forum is the best way to communicate.
If someone helps you, please reply to that help.
f you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
User avatar
rascalli
Moderator
Moderator
Posts: 656
Joined: January 18th, 2008, 12:30 am
Location: Bossche bollen land

Re: Auto-Upload to torrent server.. help??

Post 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)
Toady
Newbie
Newbie
Posts: 8
Joined: August 16th, 2010, 12:45 pm

Re: Auto-Upload to torrent server.. help??

Post 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
User avatar
sander
Release Testers
Release Testers
Posts: 8812
Joined: January 22nd, 2008, 2:22 pm

Re: Auto-Upload to torrent server.. help??

Post 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?
Please don't send me unrequested PM's; the forum is the best way to communicate.
If someone helps you, please reply to that help.
f you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
Toady
Newbie
Newbie
Posts: 8
Joined: August 16th, 2010, 12:45 pm

Re: Auto-Upload to torrent server.. help??

Post 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
User avatar
sander
Release Testers
Release Testers
Posts: 8812
Joined: January 22nd, 2008, 2:22 pm

Re: Auto-Upload to torrent server.. help??

Post 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
Please don't send me unrequested PM's; the forum is the best way to communicate.
If someone helps you, please reply to that help.
f you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
markus101
Release Testers
Release Testers
Posts: 406
Joined: August 13th, 2008, 2:51 am

Re: Auto-Upload to torrent server.. help??

Post 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
Co-developer of NzbDrone (.Net NNTP PVR) - http://www.nzbdrone.com
markus101
Release Testers
Release Testers
Posts: 406
Joined: August 13th, 2008, 2:51 am

Re: Auto-Upload to torrent server.. help??

Post 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
Co-developer of NzbDrone (.Net NNTP PVR) - http://www.nzbdrone.com
User avatar
rascalli
Moderator
Moderator
Posts: 656
Joined: January 18th, 2008, 12:30 am
Location: Bossche bollen land

Re: Auto-Upload to torrent server.. help??

Post 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
janhouse
Newbie
Newbie
Posts: 1
Joined: December 29th, 2010, 1:04 pm

Re: Auto-Upload to torrent server.. help??

Post by janhouse »

You could probably try torrent auto uploader by Janhouse http://www.janhouse.lv/uploader/
NetCash
Newbie
Newbie
Posts: 1
Joined: January 11th, 2011, 12:16 am

Re: Auto-Upload to torrent server.. help??

Post by NetCash »

I use torrent-uploader.com. could be an interest to you
Toady
Newbie
Newbie
Posts: 8
Joined: August 16th, 2010, 12:45 pm

Re: Auto-Upload to torrent server.. help??

Post 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
Last edited by Toady on February 20th, 2011, 5:41 am, edited 1 time in total.
Post Reply