--def exec=rclone

Support for Ubuntu and other Desktop Linux distributions
Post Reply
scr4tch
Posts: 1
Joined: 25 Dec 2019, 13:49

--def exec=rclone

Post by scr4tch »

Hi,

i need some help with --def exec=

i want to use rclone to move/merge the created files into my library on goodle drive after filebot is finished.
im almost there but i need one variable, which i cant figure out,

i know {quote f} is the variable for the finished file from filebot,
if i use --def exec="rclone move {quote f} gcrypt:/Test"
rclone is moving the file to Test/file.mkv
but how can i keep the folder structure filebot has created?
example:
Test/Van Helsing/Season 4/file.mkv

here is what im using now:

Code: Select all

#!/bin/sh -xu

# Input Parameters
ARG_PATH="$3/$2"
ARG_NAME="$2"
ARG_LABEL="N/A"

# Configuration
CONFIG_OUTPUT="/home26/scr4tch/Media" 

filebot -script fn:amc --output "$CONFIG_OUTPUT" --action duplicate --conflict override -non-strict --def excludeList=exclude.txt --def clean=y --def "movieFormat=Movies\{n} ({y})\{fn}" --def "seriesFormat=TV\{n}\{'Season '+s}\{fn}" --log-file amc.log --def ut_dir="$ARG_PATH" --def ut_kind="multi" --def  ut_title="$ARG_NAME" --def ut_label="$ARG_LABEL" --def exec="rclone move {quote f} gcrypt:/Test"
User avatar
rednoah
The Source
Posts: 23928
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: --def exec=rclone

Post by rednoah »

{f} is giving you the entire file path, which should contain all the information you need. The rest you kinda have to figure out in your post-process script. You might have to pass in the parent parent folder as input argument for rsync but then limit rsync to this particular file.
:idea: Please read the FAQ and How to Request Help.
Post Reply