Last active
July 28, 2017 00:35
-
-
Save gervasiocaj/2d9b64dc698fdef41284e9b0b89758e0 to your computer and use it in GitHub Desktop.
Seedboxco script to link rtorrent and plex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -xu | |
# important | |
# Automated Media Center | |
# https://www.filebot.net/forums/viewtopic.php?t=215 | |
# Plex Naming Schemes | |
# https://www.filebot.net/forums/viewtopic.php?f=5&t=4116 | |
# [rTorrent] Setup for Linux with rTorrent | |
# https://www.filebot.net/forums/viewtopic.php?f=4&t=215#p5316 | |
# [rtorrent] Latest rtorrent introduces breaking changes in how ~/.rtorrent.rc works | |
# https://www.filebot.net/forums/viewtopic.php?f=4&t=4765 | |
# [DOCS] Custom Rename Action | |
# https://www.filebot.net/forums/viewtopic.php?t=4915 | |
# Renaming Reference | |
# https://github.com/filebot/filebot/blob/master/source/net/filebot/StandardRenameAction.java | |
# AMC and Utorrent: Continue Seeding | |
# https://www.filebot.net/forums/viewtopic.php?t=2398 | |
#-------------------------------------- | |
cat <<'EOF' >> rtorrent-postprocess.sh | |
#!/bin/sh -xu | |
ARG_PATH="$1" | |
ARG_NAME="$2" | |
ARG_LABEL="$3" | |
PLEX_TOKEN="yourplextoken" | |
java -jar FileBot.jar \ | |
-script fn:amc \ | |
--output $HOME/torrents/finished/ \ | |
--format {plex} \ | |
--action hardlink \ | |
--conflict skip \ | |
-non-strict \ | |
--log-file amc.log \ | |
--def plex="localhost:$PLEX_TOKEN" unsorted=y music=y artwork=y excludeList=".excludes" ut_dir="$ARG_PATH" ut_kind="multi" ut_title="$ARG_NAME" ut_label="$ARG_LABEL" & | |
EOF | |
#-------------------------------------- | |
chmod +rx rtorrent-postprocess.sh | |
echo 'method.set_key=event.download.finished,filebot,"execute={'`pwd`/rtorrent-postprocess.sh',$d.base_path=,$d.name=,$d.custom1=}"' >> ~/.rtorrent.rc |
also run java -jar FileBot.jar -script fn:configure
to setup the OpenSubtitles credentials and use the --def subtitles=en,pb
flag
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Still struggling to make
--format "{plex.colon(' -')}"
work, fails withThe Naked Gun 3 1/3: - The Final Insult (1994)