Skip to content

Instantly share code, notes, and snippets.

@xanderhsia
Last active December 17, 2016 06:24
Show Gist options
  • Save xanderhsia/f401725db127d6518863 to your computer and use it in GitHub Desktop.
Save xanderhsia/f401725db127d6518863 to your computer and use it in GitHub Desktop.
#!/bin/bash
# qbittorrent only passes the torrentname and torrentpath
#TORRENT_ID=$1
TORRENT_NAME=$1
TORRENT_PATH=$2
#echo "Processing: " $1 $2 $3 >> /tmp/deluge-execute.log
/usr/bin/filebot -script fn:amc --output "/mnt/Raw/Filebotd" --log-file amc.log --action copy --conflict auto -non-strict --def artwork=y subtitles=en "ut_dir=$TORRENT_PATH/$TORRENT_NAME" "ut_kind=multi" "ut_title=$TORRENT_NAME"
#filebot -script fn:amc --output "$HOME/Videos" --log-file amc.log --action copy --conflict override -non-strict --def artwork=y subtitles=en "ut_dir=$TORRENT_PATH/$TORRENT_NAME" "ut_kind=multi" "ut_title=$TORRENT_NAME"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment