Automated Media Center (AMC) Scripts

Mirrored from the GitHub repo

AMC scripts automatically organizes your latest torrent downloads to your library. Once a torrent finishes downloading, by default the scripts do the following:

  • Unpack archives to ~/files/_extracted
  • Auto-detect movie and episode files
  • Fetch subtitles and transcode to SubRip/UTF-8
  • Creates a symbolic link and organize episodes, movies and music files to ~/media

You can also edit the scripts to your liking to automate more of your setup. For more information on AMC options, you can visit this link for more information.


Before adding the scripts, make sure to do the following:

  1. Uninstall FileBot from the UCP if you have it installed.
  2. SSH in and create a folder to save your AMC scripts by doing mkdir -p ~/scripts/amc
  3. Then choose the following script based on the torrent client you used.

AMC Scripts


  1. wget -P ~/scripts/amc && chmod +rx ~/scripts/amc/
  2. sed -i '/method.set_key =,filebot/d' ~/.config/rtorrent/rtorrent.rc
  3. echo 'method.set_key =,filebot,"execute.nothrow=~/scripts/amc/,$d.base_path=,$,$d.custom1="' >> ~/.config/rtorrent/rtorrent.rc
  4. app-rtorrent restart to apply the changes


  1. wget -P ~/scripts/amc && chmod +rx ~/scripts/amc/
  2. readlink -f ~/scripts/amc/ and copy the output
  3. In Deluge, Go to Preferences -> Execute. Set the following:
Event: Torrent Complete
Command: paste the output of readlink -f ~/scripts/amc/ (eg. /homexx/username/amc/scripts/
  1. Press OK and app-deluge restart


  1. app-transmission stop
  2. wget -P ~/scripts/amc && chmod +rx ~/scripts/amc/
  3. sed -i 's#^ "script-torrent-done-enabled".*# "script-torrent-done-enabled": true,#' "$HOME"/.config/transmission-daemon/settings.json
  4. sed -i 's#^ "script-torrent-done-filename".*# "script-torrent-done-filename": "'"$HOME"'/scripts/amc/",#' "$HOME"/.config/transmission-daemon/settings.json
  5. app-transmission restart to apply the changes