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"