rclone move after filebot renames
Posted: 30 Oct 2018, 12:52
I'm using the following script with Deluge
I'd like to add something along the lines of:
But as far as I can tell, that will move the directory straight into the root of / rather than inside /Movies, /Music, etc.
Thank you!
Code: Select all
#!/bin/bash
export LANG=en_US.UTF-8
export LANGUAGE=en_US.UTF-8
export LC_CTYPE="en_US.UTF-8"
TORRENT_PATH="$3/$2"
TORRENT_NAME="$2"
TORRENT_LABEL="N/A"
# Subtitle language
SUBLANG=en
SKIP_EXTRACT=n
MUSIC=y
filebot -script /opt/filebot/scripts/amc.groovy \
--output "$HOME/media" \
-non-strict --encoding utf8 --log all --log-file amc-deluge.log --action hardlink --conflict override \
--def artwork=true ut_kind=multi "ut_dir=$TORRENT_PATH" "ut_title=$TORRENT_NAME" subtitles=$SUBLANG \
extractFolder="$HOME/files/_extracted" music=$MUSIC skipExtract=$SKIP_EXTRACT &
Code: Select all
rclone move "$HOME/media/$3/$2" gdrive:/ -L --delete-empty-src-dirs
Thank you!