Skip to content

Instantly share code, notes, and snippets.

@Goon3r
Last active January 11, 2025 18:35
Show Gist options
  • Save Goon3r/7a1e822c325d54818ae9586e075f30bc to your computer and use it in GitHub Desktop.
Save Goon3r/7a1e822c325d54818ae9586e075f30bc to your computer and use it in GitHub Desktop.
Example of adding a watch directory to rtorrent via .rtorrent.rc
# The following line can be added to .rtorrent.rc to set up watch directories
#
# Replace:
# [WATCH_DIR] with the directory to watch for torrent files
# [DOWNLOAD_DIR] with the directory to save the files into
# [LABEL] with a label to apply to torrents added via this watch dir
# Important: Thus far i have not worked out how to use spaces in label names
# Do not include spaces for .torrent files will not be imported into rtorrent if you do
#
# Remove:
# d.set_custom1=[LABEL]|d.custom1.set=[LABEL] - to not add a label to the torrent (see not below re deprecations)
# d.delete_tied= - to not delete the .torrent file after it has been added to rtorrent
#
# Notes:
# When adding multiple watch directories ensure:
# the string before the 1st comma is unique for all entries (watch_directory in example)
# the number after the 1st comman is unique for all entries (1 in example)
# rtorrent < 0.9.7
schedule = watch_directory,1,5,"load.start=[WATCH_DIR]/*.torrent,d.directory.set=[DOWNLOAD_DIR],d.delete_tied=,d.set_custom1=[LABEL]"
# rtorrent >= 0.9.7
# Syntax has changed for schedule variable mutations
# See: https://github.com/rakshasa/rtorrent/wiki/RPC-Migration-0.9
# Effects, label setting, new syntax: d.custom1.set=[LABEL]
schedule = watch_directory,1,5,"load.start=[WATCH_DIR]/*.torrent,d.directory.set=[DOWNLOAD_DIR],d.delete_tied=,d.custom1.set=[LABEL]"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment