Created
April 9, 2020 20:27
-
-
Save amitkhare/8c4c232ba1b0e0a53002164c0e8d5a30 to your computer and use it in GitHub Desktop.
sample rtorrent.rc file with move on complete
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
# Where rTorrent saves the downloaded files | |
directory= /srv/torrent/downloads | |
# Where rTorrent saves the session | |
session.path.set = /srv/torrent/.session | |
# Which ports rTorrent can use (Make sure to open them in your router) | |
network.port_range.set = 50000-50000 | |
network.port_random.set = no | |
# Check the hash after the end of the download | |
pieces.hash.on_completion.set = yes | |
# Enable DHT (for torrents without trackers) | |
dht.mode.set = auto | |
dht.port.set = 6881 | |
protocol.pex.set = yes | |
# Authorize UDP trackers | |
trackers.use_udp.set = yes | |
# Enable encryption when possible | |
protocol.encryption.set = allow_incoming,try_outgoing,enable_retry | |
# SCGI port, used to communicate with Flood | |
network.scgi.open_port = 127.0.0.1:5000 | |
method.insert = d.get_finished_dir,simple,"cat=/srv/torrent/done/,$d.get_custom1=" | |
method.insert = d.update_dir,simple,"d.set_directory=$d.get_finished_dir=" | |
method.insert = d.move_torrent_data,simple,"execute=mkdir,-p,$d.get_finished_dir=;execute=mv,-f,$d.get_base_path=,$d.get_finished_dir=;" | |
method.set_key = event.download.finished,move_complete,"d.update_dir=;d.move_torrent_data=;d.save_full_session=;execute=~/scripts/post_process.sh,$d.get_custom1=,$d.get_finished_dir=,$d.get_name=,$d.directory=,$d.base_filename=" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Change: