need help with simple script...

Come up with a useful post-processing script? Share it here!
Post Reply
Redstorm
Newbie
Newbie
Posts: 5
Joined: November 6th, 2011, 7:49 pm

need help with simple script...

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

Re: need help with simple script...

Post 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
Redstorm
Newbie
Newbie
Posts: 5
Joined: November 6th, 2011, 7:49 pm

Re: need help with simple script...

Post 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'?
User avatar
Mar2zz
Jr. Member
Jr. Member
Posts: 85
Joined: February 4th, 2011, 8:30 am
Contact:

Re: need help with simple script...

Post 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.
supercoolfool
Newbie
Newbie
Posts: 3
Joined: January 10th, 2012, 2:09 pm

Re: need help with simple script...

Post 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.
User avatar
Mar2zz
Jr. Member
Jr. Member
Posts: 85
Joined: February 4th, 2011, 8:30 am
Contact:

Re: need help with simple script...

Post by Mar2zz »

For movies and tvshows go to Sorting. there you can assign move/rename to categories.
Post Reply