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.
Prerequisites
Before adding the scripts, make sure to do the following:
- Uninstall FileBot from the UCP if you have it installed.
- SSH in and create a folder to save your AMC scripts by doing
mkdir -p ~/scripts/amc
- Then choose the following script based on the torrent client you used.
AMC Scripts
rtorrent
wget -P ~/scripts/amc https://raw.githubusercontent.com/ultraseedbox/UltraSeedbox-Scripts/master/FileBot/AMC/rtorrent-amc.sh && chmod +rx ~/scripts/amc/rtorrent-amc.sh
sed -i '/method.set_key = event.download.finished,filebot/d' ~/.config/rtorrent/rtorrent.rc
echo 'method.set_key = event.download.finished,filebot,"execute.nothrow=~/scripts/amc/rtorrent-amc.sh,$d.base_path=,$d.name=,$d.custom1="' >> ~/.config/rtorrent/rtorrent.rc
app-rtorrent restart
to apply the changes
Deluge
wget -P ~/scripts/amc https://raw.githubusercontent.com/ultraseedbox/UltraSeedbox-Scripts/master/FileBot/AMC/deluge-amc.sh && chmod +rx ~/scripts/amc/deluge-amc.sh
readlink -f ~/scripts/amc/deluge-amc.sh
and copy the output- In Deluge, Go to Preferences -> Execute. Set the following:
Event: Torrent Complete
Command: paste the output of readlink -f ~/scripts/amc/deluge-amc.sh (eg. /homexx/username/amc/scripts/deluge-amc.sh)
- Press OK and
app-deluge restart
Transmission
app-transmission stop
wget -P ~/scripts/amc https://raw.githubusercontent.com/ultraseedbox/UltraSeedbox-Scripts/master/FileBot/AMC/transmission-amc.sh && chmod +rx ~/scripts/amc/transmission-amc.sh
sed -i 's#^ "script-torrent-done-enabled".*# "script-torrent-done-enabled": true,#' "$HOME"/.config/transmission-daemon/settings.json
sed -i 's#^ "script-torrent-done-filename".*# "script-torrent-done-filename": "'"$HOME"'/scripts/amc/transmission-amc.sh",#' "$HOME"/.config/transmission-daemon/settings.json
app-transmission restart
to apply the changes