Skip to content
chros73 edited this page Oct 7, 2018 · 38 revisions

Additions

Contents

This is how standard views in rTorrent are set up.

Key View Updated Collapsed Sorting, filtering properties
1 main 20 sec
sorted by downloaded time desc
2 name 20 sec
sorted by name, throttle, tracker alias
3 started 20 sec
sorted by last active time desc, group by complete, throttle, download and upload speed desc, last xfer time desc
4 stopped  
sorted by loaded time desc, group by complete, throttle
5 complete  
sorted by completed/loaded/downloaded time desc
6 incomplete  
sorted by download and upload speed desc, group by open desc, throttle, last xfer time desc
7 hashing     sorted by loaded time, group by throttle
8 seeding 20 sec
sorted by upload speed desc, group by throttle, last xfer time desc, only torrents with peers are shown
9 leeching 20 sec
sorted by download and upload speed desc, group by throttle, last xfer time desc, only torrents with peers are shown
0 active 20 sec
sorted by download and upload speed desc, group by open desc, throttle, complete desc, last xfer time desc, only active or incomplete torrents are shown

There are extra views defined along with the standard views in rTorrent.

Key View Collapsed Sorting, filtering properties
^ rtcontrol
 
! messages
sorted by completed/loaded/downloaded time desc, group by throttle, message desc
t trackers
sorted by last scrape time desc, group by tracker alias
: tagged
 
< datasize
sorted by selected data size desc, completed/loaded/downloaded time desc
> uploadeddata
sorted by uploaded data desc, completed/loaded/downloaded time desc
% ratio
sorted by ratio desc, uploaded data desc, completed/loaded/downloaded time desc
@ category
sorted by category, name
? deletable
sorted by loaded time desc, group by unsafe_data desc, throttle desc, only deletable torrents are shown
¬ last_xfer
sorted by , last xfer time desc, group by complete, throttle, download and upload speed desc, last active time desc

The following extra columns are modified / added on the fully customizable extended canvas, since in rTorrent-PS-CH v1.7.0-0.9.7 all the columns are configurable (can be disabled or new ones added on-the-fly) except for "Name" and "Tracker Domain" columns. The configuration for the extra columns can be found at the Extra column definitions section of rtorrent-ps.rc.

Column Key Description
⟲ ⇅ "650:?5C73/5: ⟲ ⇅ " ETA / last xfer time (sacrificial), on: last_xfer view; auto-toggled on: active, incomplete, leeching and started views only if there's any started incomplete download
◷ ↺ "805:?5C21/1C25/1C21/2C25/1: ◷ ↺ " Elapsed time (time the download took) (sacrificial), hidden by default, can be toggled with _ key
"810:?4C9/3C21/1: ≣  " Chunk Size (sacrificial), hidden by default, can be toggled with _ key
◷ ⤵ "812:?5C21/1C20/1C21/2C20/1: ◷ ⤵ " Downloaded time (sacrificial), only on: main view
◷ ⤴ "816:?5C21/1C20/1C21/2C20/1: ◷ ⤴ " Loaded time (sacrificial), only on: deletable, hashing and stopped views
⟲ ↺⤴⤵ "820:?5C21/1C20/1C21/2C20/1:⟲ ↺⤴⤵" Last scrape time (sacrificial), only on: trackers view
Domain "830:?14:Domain" Domain (sacrificial), only on: trackers view
⣿‰ "910:?2C94/2:⣿‰" Progress (numeric) (sacrificial), on: hashing view; auto-toggled (and replaces built-in 'Progress' column) on: active, incomplete, leeching and started views only if there's any started incomplete download
☯ ‰ "930:?5C93/5: ☯ ‰ " Ratio (numeric) (sacrificial), on: complete, last_xfer, ratio, seeding, stopped and uploadeddata views, can be toggled with _ key
"951:1C72/1:⊘" Throttle (none = global, ∞ = NULL, ⊼ = slowup, ⊻ = tardyup throttle)
"960:1C71/1:◎" Unsafe-data (none = safe data, ⊘ = unsafe data, ⊗ = unsafe data with delqueue)
"970:1:⊕" Data directory (none = base path entry is missing, otherwise the first letter of the name of data directory)

There are extra keyboard shortcuts defined along with the original ones in rTorrent.

Key Functionality
* toggle collapsed/expanded display (defined in rTorrent-PS-CH)
/ toggle sacrificial columns manually (defined in rTorrent-PS-CH)
^F search for a term in the name of download (defined in rTorrent-PS-CH)
F3 search next (defined in rTorrent-PS-CH)
F subfilter the current view based on the name of downloads by entering a regexp (capital f) (defined in rTorrent-PS-CH)
↑, ↓ prev, next in input history (at any input prompt, e.g. at ^x) (defined in rTorrent-PS-CH)
ESC exit from any input prompt (e.g. at ^x) (defined in rTorrent-PS-CH)
} toggle unsafe_data for a download item
# send manual scrape request for a download item
. toggle tag for a download item
T clear tag view
^g display tags for a download item
_ toggle visibility of specified columns ('Elapsed time', 'Chunk size', 'Ratio (numeric)') on collapsed display
| toggle selectable themes
= toggle autoscale network history
home Home
end End
pgup Pageg Up
pgdn Page Down
F2 display quick help resources
^q DISABLED (used to exit rtorrent)

The following variables are added in rTorrent config files.

Determines whether to use inotify for loading/removing torrent (meta) files from watch directories.

  • values [0|1], 1 means inotify will be used

Determines whether to use the provided p2p blocklist with IPv4 Filter to stop connecting to unwanted peers.

  • values [0|1], 1 means blocklist will be used

Determines whether to queue a magnet link download upon initial downloading (to be able to use Queue Manager) instead of start downloading it straight away when addMagnetLinksNative.sh helper script is used.

  • values [0|1], 1 means resulted torrent (meta) files will be queued.

Determines whether to use external DNS cache instead of the built-in one of CURL.

  • values [0|1], 1 means external DNS cache will be used.

Sets an interface with IPv4 address to bind to.

  • values [eth0|tun0|...]

Sets scrape intervals for active (580 ~10 mins) and idle items (43180 ~12 hours).

Sets the min uprate/downrate threshold for last_xfer custom field in Bytes.

Values used for min_peers / max_peers / max_uploads settings of downloads that belong to non-special groups and those values will be overridden by per torrent settings in Favouring section of main config file.

Values used for getting the upload rate limit for throttle groups in KB.

Values used for getting the max number of upload/download slots during leeching and seeding for choke groups.

Values used for getting the global download rate limit in KB.

Min value of uprate per upload slot (unchoked peers) in KB.

Directory constants.

Custom string that can help to use different config files, scripts with different setups based on naming. It can be an empty string as well.

Define selectable color theme configs.

Sets "pyro.bin_dir" to the "bin" directory where the pyrocore tools are installed. Make sure you end it with a "/". If this is left empty, then the shell's path is searched

Determines whether to activate rTorrent-PS / rTorrent-PS-CH features.

Sets archival and retention delay in days for log rotation if it's enabled.

A constant value that holds the system.time when the client was started.

The following custom field attributes are added in rTorrent config files.

Determines whether data of a torrent is deletable.

  • unsafe_data : values [|0|1|2], 1 means unsafe_data, 2 means unsafe_data in delete queue

Determines the sub-directory (category) for data of a torrent. It's used with watch directories and continously updated during the lifetime of a torrent.

  • data_dir : name of category, e.g. unsafe, rotating

Determines the sub-directory (category) for meta file of a torrent. It's used with watch directories and continously updated during the lifetime of a torrent.

  • meta_dir : name of category, e.g. unsafe, rotating

Name of category the download was originally assigned to.

Timestamp, time the torrent file was downloaded (created locally).

Timestamp, time the torrent was loaded into client.

Timestamp, first time the torrent was started.

Timestamp, time of completion of the torrent.

Timestamp, last time the torrent had peers.

Timestamp, last time the torrent had transfered data.

Activation intervals.

Timestamp, last time when a scrape request was sent for the torrent.

The following commands can be used in rtorrent with ^x.

Moves data (can be partially downloaded) and meta (.torrent) file of a torrent into another directories at the same time and updates all necessary attributes of it.

  • category_name : one of the category directories, e.g. unsafe, songs, etc
  • special_group : boolean, values [|0|1], 1 means special group
  • unsafe_data : values [|0|1|2], 1 means unsafe_data, 2 means unsafe_data in delete queue

Example usage: d.move_to=rotating,1,1, d.move_to=rotating,1,2, d.move_to=fullseed,1,, d.move_to=unsafe,,1, d.move_to=unsafe,,2, d.move_to=various,,

Moves a finished, stucked meta file from the downloading directory into its final place (thanks to the simetimes missing meta_dir custom field value, rtorrent bug on OpenWRT?). It can also be useful if a category name is changed.

  • category_name : one of the category directories, e.g. unsafe, songs, etc

Example usage: d.move_meta_to=rotating, d.move_meta_to=fullseed, d.move_meta_to=unsafe, d.move_meta_to=various

Gets the full path of data of a torrent (it's a workaround for the possibly empty d.base_path attribute).

Gets the full path of the session file of a torrent.

Deletes data of a torrent if data dir/file of a torrent exists and its data is not bogus and removes symlink for its metafile if it exists or prints out an error message.

Adds torrent to delete queue by creating a symlink in .delqueue dir to its metafile and setting unsafe_data custom variable to 2. This command is bind to } key.

Removes torrent from delete queue by deleting its symlink if it exists from .delqueue dir. This command is bind to } key.

  • unsafe_data : optional parameter, values [|0|1], 1 means unsafe_data

Usage: d.remove_from_delqueue=, d.remove_from_delqueue=1

Fixes unsafe_data values depending on a symlink in .delqueue directory exists or not. Useful if symlinks are sometimes created manually or by a script in .delqueue dir.

Returns d.ratio as float formatted string.

Returns progress in numeric format.

Modifies the peers_min, peers_max, max_uploads values of a torrent for both downloading and uploading based on which group (special or not) it belongs to.

Sends scrape request for a torrent, sets its tm_last_scrape timestamp custom field and saves its session. This command is bind to # key.

It won't affect the operation of rtorrent, but nice to have these values updated. This info is only updated when rtorrent starts or a torrent is added by default. Although this setup regularly updates scrape information for all torrents (even stopped ones), sometimes this command can be useful.

The modification time of the d.tied_to_file or else system.time. This is set once when an item is newly added to the download list, so a later d.delete_tied does not change it.

Last time any peer was connected. This is checked at least once per minute, but very short connections might not be recorded. Redefine the pyro_update_last_active schedule if you want the check to run at a different frequency.

Last time any data was transferred for this item. pyro.last_xfer.min_rate sets the threshold in bytes below which activity is not counted, and defaults to 5000. Do not set this too low, since there is always some accounting traffic on an item, when peers connect and then are not interested in transferring actual data. Checking is done several times per minute, but very short transfer bursts might not be recorded. Redefine the pyro_update_last_xfer schedule if you want the check to run at a different frequency.

Checks that threshold against both current upstream and downstream traffic.

Displays quick help resources.

Switches current view to messages and prints the size of the view.

Sets view visible.

Returns uptime (with the help of getElapsedTime.sh script) in the form of Up: 6 years, 5 months, 18 days, 02:39:57. Year/month info isn't shown if their value is 0.

Displays any valid timestamp value in human readable format or print the value itself (e.g.: 30/06/2013 23:47:33).

Usage: hrf_time=$d.creation_date=, hrf_time=$d.custom=tm_last_scrape

Gets current uprate in KB for special group.

Gets total size of rotating and unsafe downloads.

Gets mtime of a path or return 2nd argument when path does not exist.

Imports the specified config file from ~/.pyroscope/ directory.

  • rtconfig_filename : name of rtorrent config file in ~/.pyroscope/ directory, e.g. rtorrent-ps.rc, color_scheme256-happy_pastel.rc

Usage: pyro.import="color_scheme256-happy_pastel.rc"

Exits rTorrent gracefully.

List orphaned torrents.

Usage: rtlistOrphans

List orphaned torrent (meta) files.

Usage: rtlistOrphanMetas

List public torrents.

Usage: rtlistPublic

List stuck torrents in incomplete directory.

Usage: rtlistStuck

List torrents with unusual trackers messages.

Usage: rtlistMessages

List stopped torrents.

Usage: rtlistStopped

Get total size of rotating and unsafe torrents.

Usage: rtgetTotalRotatingSize

Downloads and creates torrent files from magnet URIs into one of the queue directories of rTorrent. If 'category' parameter isn't given then a selection dialog is displayed. Requires: dialog and aria2 commands.

Usage:

addMagnetLinksAria2.sh [category] "magnet:?xt=urn:btih:foo…" ["magnet:?xt=urn:btih:bar…", …]

Creates magnet torrent files from magnet URIs into one of the watch directories of rTorrent. If 'category' parameter isn't given then a selection dialog is displayed. Requires: dialog command.

Usage:

addMagnetLinksNative.sh [category] "magnet:?xt=urn:btih:foo…" ["magnet:?xt=urn:btih:bar…", …]

Backup session directory of rtorrent.

Usage: doBackup.sh

Queue management script with rotating (deleting data) capability and category support (that can be included into a main script as well).

Usage: queueTorrent.sh or including in a main script: . "${BASH_SOURCE%/*}/queueTorrent.sh"

Send email report about any torrent with unusual tracker message.

Usage: reportMessages.sh

Send email report about any orphaned torrent.

Usage: reportOrphans.sh

Send email report about any orphaned meta files.

Usage: reportOrphanMetas.sh

Send email report about any public torrent.

Usage: reportPublic.sh

Send email report about any torrent that is stopped.

Usage: reportStopped.sh

Send email report about any stuck torrent in incomplete directory.

Usage: reportStuck.sh

Send email report about low rotating space (in rotating and unsafe directory, including free space).

Usage: reportLowRotatingSpace.sh

General script with helper functions that can be included into main scripts.

Usage: including in a main script: . "${BASH_SOURCE%/*}/rtUtils.sh"

Sample download script to demonstrate usage of inclusion of queue script inside a main script.

Usage: sampleDownload.sh

Init script. It can be installed and enabled by running: sudo update-rc.d rtorrent defaults 92 and sudo update-rc.d rtorrent enable.

Usage: sudo /etc/init.d/rtorrent [start|stop|restart|force-reload|status]

Clone this wiki locally