Changes between Initial Version and Version 1 of archive/libtorrent.rakshasa.no/RTorrentRatioHandling


Ignore:
Timestamp:
08/08/15 16:34:09 (9 years ago)
Author:
Gabor Hudiczius
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • archive/libtorrent.rakshasa.no/RTorrentRatioHandling

    v1 v1  
     1[[libtorrentMirror]]
     2
     3= Ratio handling =
     4
     5The ratio handling has been updated in rtorrent 0.8.4.
     6
     7== Quick setup ==
     8
     9Here is a working config that you can use as a starting point.
     10
     11Use the 'max', 'min' and 'upload' variables as in the old version.
     12
     13{{{
     14# Enable the default ratio group.
     15ratio.enable=
     16
     17# Change the limits, the defaults should be sufficient.
     18ratio.min.set=100
     19ratio.max.set=300
     20ratio.upload.set=20M
     21
     22# Changing the command triggered when the ratio is reached.
     23system.method.set = group.seeding.ratio.command, d.close=, d.erase=
     24}}}
     25
     26== The basics ==
     27
     28{{{
     29# Default group for ratio handling.
     30group.seeding.view
     31group.seeding.ratio.command
     32group.seeding.ratio.disable
     33group.seeding.ratio.enable
     34group.seeding.ratio.max
     35group.seeding.ratio.max.set
     36group.seeding.ratio.min
     37group.seeding.ratio.min.set
     38group.seeding.ratio.upload
     39group.seeding.ratio.upload.set
     40
     41# The above commands can be called through:
     42ratio.disable
     43ratio.enable
     44ratio.max
     45ratio.max.set
     46ratio.min
     47ratio.min.set
     48ratio.upload
     49ratio.upload.set
     50}}}
     51
     52The 'group.seeding.view' variable points to the 'seeding' view, which
     53contains all seeding downloads, and the default 'ratio.command' closes
     54the download. To enabled or disable the ratio handling for the group,
     55call the 'enable' and 'disable' commands which automatically adds it
     56to the scheduler.
     57
     58== Ratio groups ==
     59
     60If you wish to specify different ratio's for different watch
     61directories, do the following:
     62
     63{{{
     64# Add new views. You may find out what downloads they contain through
     65# 'ui.current_view.set=group_1' command or XMLRPC calls.
     66view_add = view_group_1
     67
     68# Make the views persist across sessions.
     69view.persistent = view_group_1
     70
     71# Create new groups, 'group.insert = <name>, <view>'.
     72group.insert = group_1, view_group_1
     73
     74group.group_1.ratio.enable=
     75group.group_1.ratio.min.set=100
     76group.group_1.ratio.max.set=300
     77group.group_1.ratio.upload.set=20M
     78
     79# Optionally you may create a persistent view group directly. Note
     80# that the view name is the same as the group name.
     81group.insert_persistent_view = group_2
     82
     83group.group_2.ratio.enable=
     84group.group_2.ratio.min.set=300
     85group.group_2.ratio.max.set=0
     86
     87# Downloads need to be inserted into the view with the 'view.set_visible'
     88# command. Note that extra parameters to 'load' are commands called
     89# with the newly created download as the target.
     90schedule = watch_directory_1,5,10,"load_start_verbose=foo_1/*.torrent, view.set_visible=view_group_1"
     91schedule = watch_directory_2,5,10,"load_start_verbose=foo_2/*.torrent, view.set_visible=group_2"
     92}}}