This plugin adds URL's directly into rTorrent or create entries from rTorrent for further automation.
Supports
rtorrent:
uri: scgi://localhost:5000
path: /data/torrent/ongoing/
custom1: TV
Common Options
Name | Info | Description |
---|---|---|
uri | Text | rTorrent URI. IE: scgi://localhost:5000, http://localhost:80/RPC2, /home/rtorrent/rtorrent.sock |
username | Text | Username when using HTTP for basic auth |
password | Text | Password when using HTTP for basic auth |
digest_auth | [yes|no] | Use HTTP Digest authentication |
Output specific options
Name | Info | Description |
---|---|---|
mkdir | [yes|no] | Create the destination folder on the rTorrent server (default: yes) |
start | [yes|no] | Automatically start newly added torrent (default: yes) |
action | [add|update|delete|purge] | Default is add. Purge deletes a torrent and it's associated data |
path | Directory | Destination for downloaded file(s). Supports jinja replacement. Note: Will contain incomplete ongoing downloads. |
priority | [off|low|medium|high] | Set torrent priority (default off) |
custom1 | Text | Set custom field |
custom2 | Text | Set custom field |
custom3 | Text | Set custom field |
custom4 | Text | Set custom field |
custom5 | Text | Set custom field |
custom_fields | dictionary | Set named custom fields |
Input specific options
Name | Info | Description |
---|---|---|
view | Text | View to use as input (default main) |
fields | list | Specify which fields to get from rTorrent. See below for default fields |
custom_fields | list | Specify which named custom fields to get from rTorrent |
The following entry fields are set by default on input.
Use fields to remove after 2.0 ratio and above
tasks:
delete-ratio:
from_rtorrent:
uri: scgi://localhost:5000
if:
- ratio > 2.0: accept
rtorrent:
action: delete
custom2: complete
uri: http://192.168.0.20/rtorrent
Create rTorrent action on complete
File .rtorrent.rc
system.method.set_key = event.download.finished,move_complete,"execute=mv,-u,$d.get_base_path=,$d.get_custom1=;d.set_directory=$d.get_custom1="
This configuration for rtorrent is outdated and needs to be updated.
Source
Add TVShows to rTorrent and set the download directory to /data/downloads/TV/{{ tvdb_series_name }}
tasks:
tv:
rss: http://domain/rss.xml
accept_all: yes
rtorrent:
uri: scgi://localhost:5000
path: /data/downloads/ongoing/
custom1: /data/downloads/TV/{{ tvdb_series_name }}
NOTE: Unsure how/if this works, original rTorrent plugin author wrote this so it probably does ...
Add TVShows to rTorrent and set the download directory to /data/downloads/TV/{{ tvdb_series_name }}
tasks:
tv:
rss: http://domain/rss.xml
accept_all: yes
rtorrent:
uri: scgi://localhost:5000
path: /data/downloads/TV/{{ tvdb_series_name }}
custom1: TV
Once downloaded move to another folder. You can obviously expand on this config to auto extract (using the decompress plugin) and rename the files then keep seeding.
tasks:
move-complete:
from_rtorrent:
uri: scgi://localhost:5000
regexp:
accept_excluding:
- complete
from: custom2
rtorrent:
action: update
custom2: complete
uri: http://192.168.0.20/rtorrent
path: /data/seeding/{{ custom1 }}/{{ tvdb_series_name }}
tasks:
update-rtorrent-custom-status:
from_rtorrent:
uri: scgi://localhost:5000
custom_fields:
- my_custom_status
if:
- "my_custom_status == 'download-completed'": accept
rtorrent:
action: update
uri: scgi://localhost:5000
custom_fields:
my_custom_status: 'ready-to-move'