Page 1 of 1

need help with simple script...

Posted: December 18th, 2011, 2:44 pm
by Redstorm
Hi Guys

First off, I am a total newbie where Linux is concerned, so please go gentle on me.

I am running the holy trinity on unRAID v5.0beta.

I need to know where to find a script (or how to write one) that will move downloaded movies to my media folder when they are finished.
I download to /mnt/disk1/Downloads/complete
I store movies in /mnt/disk1/Media/Movies

also how does this change with user shares?

Can anyone help please???

Re: need help with simple script...

Posted: December 18th, 2011, 3:42 pm
by sander
This should do it:

mv $1 /mnt/disk1/Media/Movies

call it moviemove.sh, make it executable, put in the script directory, and select it as post-processing for your movie downloads.

HTH

Re: need help with simple script...

Posted: December 24th, 2011, 9:15 am
by Redstorm
Not sure how to make it executable?

will that move the movie in its folder to the media folder? do i not need anything more complicated to rename the file and strip out all the 'crap'?

Re: need help with simple script...

Posted: December 24th, 2011, 2:28 pm
by Mar2zz
executable=sudo chmod +x moviemove.sh
And it should be mv "$1" "/mnt/disk1/Media/Movies/$1" or else it will error.

But you should not use a script!! You can setup sabnzbd to move movies inside your moviefolders. Go to settings, categorys and set destination at category movies. Now every file you download can be set in that category to be treated as a movie. Also see sorting if you need renamingoptions.

Re: need help with simple script...

Posted: January 10th, 2012, 3:32 pm
by supercoolfool
You can setup sabnzbd to move movies inside your moviefolders.
I have been trying to get Sabnzbd to move files after extraction ever since I started using it. Is this something I can do in categories? I don't see an option for Set Destination.

Re: need help with simple script...

Posted: January 10th, 2012, 4:13 pm
by Mar2zz
For movies and tvshows go to Sorting. there you can assign move/rename to categories.