Move completed downloads...

dsouvik215

Member
May 25, 2018
896
0
16
Hello,

I recently set up ruTorrent, and I love it! I was playing around with wTorrent before and, while it looked nice, it just wasn't functional enough. I'm now prepared to set up rTorrent to do some serious downloading, especially now that Issue 474 is fixed (thanks novi!).

I'm going to be using this to automatically download my favorite TV shows. The downloads are saved in /storage/public/torrents/, however, when completed, I'd like them to be moved to /storage/public/Media/Videos/TV/[show]/[season]/, obviously based on which show and season it is. I'd like to to be as automatic as possible.

I think AutoTools is the plugin I'm looking for, but I have no idea how to use it. I've read a few topics on these forums about it and it's wiki page and I'm still a little confused/lost. The way I have this set up is the RSS plugin automatically download new shows, and labels them in this format: [show]/Season [##] based on the feed entries title. For example, season 5 episodes of Dexter will be labeled Dexter/Season 5. Is there any way that I can use these labels to automate the moving of finished downloads via ruTorrent?

Even better would be help on setting this up via the rtorrent config file. I've always been partial to setting up configurations at the lowest level possible (eg: rtorrent config rather than piggyback on ruTorrent's config), but that might be more difficult because, as I understand it, rtorrent doesn't recognize the Labels applied to torrents via ruTorrent and thus regex would need to be involved to pick out which downloads are which shows and for which seasons. It might be a little too overcomplicated, so a ruTorrent config that does the same thing is welcome!

Thanks for any help!
 

somus1735

Member
May 25, 2018
833
0
16
it's pretty simple. First, let's talk about how autolabel works.


let's say your download directory is "/home/bob/download/"


you might create some sub dirs like"

/home/bob/download/TV
/home/bob/download/TV/Standard/
/home/bob/download/TV/Highdef/
/home/bob/download/Movies/
/home/bob/download/Music

and so on (or whatever you wish)

now, if you set a torrent to download and set the save path to one of these subdir's, auto-label will create a label based on the subdir

so for instance, if you set some torrent to download to /home/bon/download/TV/Highdef/ it would automatically get the label TV/Highdef

very simple. You can also use your RSS rules to set the download path to anything you like.

now, automove works in a similar fashion... Using the example directories from before, you would set a new directory for completed downloads outside of your current download path, for example

/home/bob/Complete/


and when a torrent is added to one of the subdirectories in your download path, they will be moved to a corresponding directory in your Complete directory (replicating the hierarchy you've set up)

for instance, if you set a torrent to download to

/home/bob/download/TV/Highdef/

when it finishes downloading, it will be moved to:

/home/bob/Complete/TV/Highdef/

and seed from this new location.
 

dsouvik215

Member
May 25, 2018
896
0
16
That seems like it will still be a problem...

It seems that the AutoMove feature will only move everything to one directory and it's subdirectories... what if I want to move different files around to different directories?

For example, say I want all my unlabeled downloads (these would be just misc downloads that I find on the internet) to be moved to /storage/Completed.

At the same time, I want my labeled TV shows to be moved to /storage/Media/Video/TV/[show]/[season]/ and I want any labeled movie files to be moved to /storage/Media/Video/Movies/[movie]/. I also want any labeled music to be moved to /storage/Media/Music/[artist]/[album]/.

How about labeled software? /storage/Programs

Not many of these (except the media files) fall under the same top directory. The only directory all of them share in common would be /storage/.

Does AutoTools not support a per-label move location? Like, rules set up per-label? For example, if I have a bunch of torrents labeled "Dexter - Season 3", I'd like to have that label have it's own set of rules, such as to move to "/storage/Media/TV/Dexter/Season 3/". Currently, it seems that the move directory in the settings is just one directory, and everything that you want moved must be moved under that directory, without much fine control over where things get moved to. And it seems to be completely dependent upon how the incomplete downloads hierarchy is set up...

For my needs, I may be able to get it to work... but I can see this becoming an issue if you need files moved to different parts of the filesystem (parts that have little relation to each other)

I hope I explained that well enough. >_>
 

dsouvik215

Member
May 25, 2018
896
0
16
Also, will it move already completed downloads? Or just new ones that finish after setting it up? Because I've set it up as a test, and my downloads haven't moved yet...
 

somus1735

Member
May 25, 2018
833
0
16
you have 3 options.


one: write your own plugin.
two: use autotools as intended
three: hack around the problem.



you could try using sym links to acomplish what you want.



/home/bob/Complete/

if you want TV to go to another location you could make a symboliuc link in Complete for it:


Code:
cd /home/bob/Complete/
ln -s /some/other/location TV/

no, it will not move already completed stuff, you can do this on your own.


I don't see a problme setting it up the way it's meant to be used....what you are asking for is a very specialized use scenario and would require you writing your own patches i believe. Autotools works exactly as it SHOULD work. If you want it to do more, please, by all means, submit your patches.



also, it may be worth noting that you can probably get something more like what you like by just using watch directories and .rtorrent.rc directives but it would be pretty complicated. You shpould have NO problem making autotools work using smybolic links if that's what you want it to do
 

dsouvik215

Member
May 25, 2018
896
0
16
Just wanted to jump in and say that I've got it sorted out now, for the most part. I think I was looking at it the wrong way. There's still a bit of kinks here and there, but at least my TV shows are being moved to their proper place.

Quote
you could try using sym links to acomplish what you want.​


Oh wow, I never thought about this. However, I have run into a problem with AutoMove and symbolic links (may or may not be relating to the problem at hand, since I haven't tested this particular solution). I will post a bug report in the coming days...

Quote
I don't see a problme setting it up the way it's meant to be used....what you are asking for is a very specialized use scenario and would require you writing your own patches i believe. Autotools works exactly as it SHOULD work. If you want it to do more, please, by all means, submit your patches.​


Personally, I think it's a matter of taste. I'm sure there are a lot of people who would want a particular label to do it's own thing, move to it's own place. I also think that maybe the RSS Plugin should have this option built-in. But AutoTools seems to do what it needs to, it's just wrapping your head around it -- that's the problem.

And I may just look into writing up a plugin to do just that. wink.gif

Thanks for all your help! I will be continuing to tweak my setting to hopefully achieve an optimal config. =D
 

Attachments