multi volume sorting
Posted: 13 Oct 2014, 16:48
I'm using a Mac Mini, Plex, Filebot, Flexget (tv series) Couchpotato (movies) Headphones (music) currently my setup is as follows
Currently I have flexget, couchpotato and headphones all downloading automatically via transmission into the default download folder which is "/Volumes/Media/Incomplete" filebot then COPY Movies/Music/Series into their appropriate location (on three separate volumes). due to decreasing space I would like to LINK to conserve space and maintain seeding.
I would like to switch from --action copy to --action link HOWEVER I do understand that LINK will ONLY work on the same /Volume that the original file is on. Therefor I imagine that filebot with a postprocess script can be tweaked to work this way. what I imagine is
TV Series - Movies- Music
where I (imagine) I'm telling postprocess if file is in Volume A it is TV and should be linked renamed and sorted within Volume A to folder /TV into .../TV/Series/Season#/Series SxEy [resolution,channels]-title
if file is on volume B it is a Movie link and rename within Volume B to folder /M0vies sorted into /M0vies/movie name (year) [rating]/etc and finally files downloaded to my home folder/Torrent is music and sorted into download folder.
Code: Select all
\#!/bin/bash
/Applications/Filebot.app/Contents/MacOS/filebot.sh -script fn:amc --output "/Volumes/Media/Incomplete/complete" --log-file amc.log --action copy --conflict auto -non-strict --def deleteAfterExtract=y music=y plex=gallo artwork=n subtitles=en clean=y "ut_dir=/Volumes/Media/Incomplete/complete/$TR_TORRENT_NAME" "ut_kind=multi" "ut_title=$TR_TORRENT_NAME" "seriesFormat=/Volumes/Media/TV/{n.replaceTrailingBrackets().sortName()}/Season {s}/{n.replaceTrailingBrackets()} -S{s}E{e.pad(2)} [{vf},{af}]-{t}" "movieFormat=/Volumes/Video/M0vies/{n.sortName()} ({y}) [{certification}] [{vf}-{af}]" "musicFormat=~/Downloads/[{pi.pad(2)}] {artist} -{album}-{t}"
I would like to switch from --action copy to --action link HOWEVER I do understand that LINK will ONLY work on the same /Volume that the original file is on. Therefor I imagine that filebot with a postprocess script can be tweaked to work this way. what I imagine is
TV Series - Movies- Music
Code: Select all
\#!/bin/bash
/Applications/Filebot.app/Contents/MacOS/filebot.sh -script fn:amc --output "/Volumes/A/TV" --log-file amc.log --action LINK --def * "ut_dir=/Volumes/A/Download/$TR_TORRENT_NAME" "ut_kind=mulit" "ut_title=$TR_TORRENT_NAME" "seriesFormat=/Volumes/Media/TV/{n.replaceTrailingBrackets().sortName()}/Season {s}/{n.replaceTrailingBrackets()} -S{s}E{e.pad(2)} [{vf},{af}]-{t}"
--output "/Volumes/B/M0vies" --log-file amc.log --action LINK --def * "ut_dir=/Volumes/A/Download/$TR_TORRENT_NAME" "ut_kind=mulit" "ut_title=$TR_TORRENT_NAME" "movieFormat=/Volumes/Video/M0vies/{n.sortName()} ({y}) [{certification}] [{vf}-{af}]"
--output "~/Torrent" --log-file amc.log --action COPY --def * "ut_dir=/Volumes/A/Download/$TR_TORRENT_NAME" "ut_kind=mulit" "ut_title=$TR_TORRENT_NAME" "musicFormat=~/Download/[{pi.pad(2)}] {artist} -{album}-{t}"
if file is on volume B it is a Movie link and rename within Volume B to folder /M0vies sorted into /M0vies/movie name (year) [rating]/etc and finally files downloaded to my home folder/Torrent is music and sorted into download folder.