Page 1 of 1

Need a script to move downloaded files to seperate folders

Posted: 04 Nov 2013, 21:27
by Achandab
Hi.

This is directed at RedNoah. Need your help

I am a complete noob.

This should hopefully be a fairly simple script for you.

Using a synology NASlatest version of DSM. I download torrents to a download folder on the NAS. Torrents will be either movies, TV Shows or Music. I need a script to move the downloaded media from that folder to their respective folders ie: Movies. TV shows and Music.

Please help. This has been bugging me for days. Ready to make a big donation!

Re: Need a script to move downloaded files to seperate folde

Posted: 04 Nov 2013, 21:46
by rednoah
The AMC Script?
http://www.filebot.net/forums/viewtopic ... =215#p1561

And corresponding tutorial video:
https://www.youtube.com/watch?v=brGyo2uQzSs

Just set your torrent program up to call filebot/amc after it's completed a download.


PS: It's definitely not a "fairly simple" script. Luckily you running the script is dead simple.

Re: Need a script to move downloaded files to seperate folde

Posted: 04 Nov 2013, 22:23
by Achandab
Just watched the video. Thats exactly what i'm after. I don't use uTorrent though. The plan is to use on the NAS for everything. It does have a torrent program called download station. Just checked and it doesnt have the option to run a script after downloading is complete. Though it does have a task scheduler which can run scripts at set intervals.

Re: Need a script to move downloaded files to seperate folde

Posted: 05 Nov 2013, 00:18
by rednoah
Does it at least have some sort of option to move completed downloads? Otherwise you have to run the script in intervals some somehow figure out how to exclude files that are being downloaded.

Re: Need a script to move downloaded files to seperate folde

Posted: 05 Nov 2013, 00:34
by Achandab
Yes it has the option to move completed downloads to a separate folder.

Re: Need a script to move downloaded files to seperate folde

Posted: 05 Nov 2013, 10:07
by rednoah
Yes that'd be best best. Make a new folder where completed downloads get moved to and set up a task to run the amc script every few ours on that folder. Pretty straight-forward.

Re: Need a script to move downloaded files to seperate folde

Posted: 05 Nov 2013, 10:18
by Achandab
Forgive my ignorance.

How do i go about setting which folder for AMC to look for and which folder to move the files to? Like I said i'm a complete noob.

Re: Need a script to move downloaded files to seperate folde

Posted: 05 Nov 2013, 10:26
by rednoah
Just look at the docs for the AMC script and the video tutorial. Just a matter of passing cmdline arguments.

Re: Need a script to move downloaded files to seperate folde

Posted: 05 Nov 2013, 13:16
by Achandab
Thanks Red

I will have a look at this now. Hopefully it shouldn't be too hard. I have just made a donation for this fantastic bit of software. Thanks for your help.

Re: Need a script to move downloaded files to seperate folde

Posted: 06 Nov 2013, 22:55
by Achandab
Thanks Red for logging into my machine last night and fixing up the script. Everything works perfect now! Love your work.