Page 1 of 1

Automating File Movement

Posted: October 22nd, 2008, 9:20 pm
by bigdaddyo811
I'm a noob so bear with me. I love this thing. It has solved all my frustrations with TV dwnloading. Here's my question:

I download all my shows and sort them with Sabnzbd onto the harddrive of the mac that I do downloads with.

I want however once the file is downloaded, unpacked and ready to be actually copied to a folder on a NAS I have in the closet as that is the server that all the rest of the computers in the house get their files from

Anyone know how to automate this on the mac mini I dwnload with or in the program itself?

I need for example for
Downloads->TV-> -> S03E05.mkv

to be copied to the equivalent folder on my NAS

thanks
bdo

Re: Automating File Movement

Posted: October 23rd, 2008, 5:09 am
by shypike
Why don't you tell SABnzbd to use the NAS folder directly?
Just set the "complete" folder in Config->Folders to the full NAS path.
Or use categories with category folders.

Re: Automating File Movement

Posted: October 23rd, 2008, 11:19 am
by bigdaddyo811
do you put the SMB:// in front?

I am on a mac.

If I put //192.168.1.150/NAS/TV Shows

it still saves it to the local drive (I'm assuming it cant find it).

Does Sabnzbd understand the smb:// in front?

Re: Automating File Movement

Posted: October 23rd, 2008, 2:02 pm
by shypike
SABnzbd uses whatever the operating system supports.
I don't know which syntax OSX requires.

How do the NAS paths look in the Finder?

Re: Automating File Movement

Posted: October 24th, 2008, 11:46 am
by bigdaddyo811
- smb:// doesnt work
- just putting //192.168.1.150/drive etc.. doesnt work.

they both put the files in a new folder in the root directory called "192.168.1.150"..

anyone with a mac know how to do this?

Re: Automating File Movement

Posted: October 24th, 2008, 12:04 pm
by shypike
Just guessing, but from what I know from Unix systems (and OSX is a Unix derivative),
you must "mount" shares so that they look like part of the local system.

E.g. when I want to use a USB drive, I do this:

mkdir /mnt/mydrive
mount /dev/sdb1 /mnt/mydrive

"/dev/sdb1" is the device name of the usb-drive. I then tell SABnzbd to use /mnt/mydrive.

I suppose something similar is needed for network shares.

Does this discussion help?
http://www.ozzu.com/macintosh-forum/mac ... 68618.html

Re: Automating File Movement

Posted: October 29th, 2008, 7:27 am
by bigdaddyo811
Ok. That helped very much. I have it almost there.

I have mounted the drive and it is copying to the SMB share but still doing a duplicate.

The name of my drive is "HAMMER" and my tv shows go in a folder named "TV" with each name under that ", " etc..

I have entered:

/volumes/hammer/TV   under the "FOLDERS" setting.

The problem is that it is creating a new folder named "TV" under the existing TV folder each time it copies a show over. So I get

Hammer
- TV  (created by me)
   -   (created by me)
   - TV   (created by Sabnzbd)
      - (created by Sabnzbd)
        - Episode XX
   - (created by me)


any help?
thanks

Re: Automating File Movement

Posted: October 29th, 2008, 8:12 am
by shypike
Switch, can you answer this?

Re: Automating File Movement

Posted: October 29th, 2008, 11:38 am
by Camelot
bigdaddyo811 wrote: ...
I have entered:

/volumes/hammer/TV   under the "FOLDERS" setting.
...
As far as I can tell, you have two options to fix this:
a. Change the setting under "folders" to: /volumes/hammer
    This means that all the movies you download will go to /Volumes/hammer/Movies, TV shows to /Volumes/hammer/TV, etc

b. Change the setting under "folders" to: /volumes/hammer/downloads
    or whatever you want the DEFAULT folder to be for all content EXCEPT tv shows to be
    AND go to CATEGORIES and modify the tv entry to list the FULL path to where you want the base directory of the tv ep to be:
    /Volumes/hammer/tv


hope that helps