Skip to content

Commit

Permalink
Add support for using magnet downloads in load watch directory (See #102
Browse files Browse the repository at this point in the history
)
  • Loading branch information
chros authored and chros committed Feb 3, 2017
1 parent 401a83d commit 6ab9900
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions ubuntu-14.04/home/chros73/.rtorrent.rc
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,9 @@ method.insert = i, simple, "print=\"$get_limit=$cat=info,$convert.kb=$throttle.g

##### begin: Other enhancements #####

# Start any magnet torrent from the load watch directory (that only loads downloads into rtorrent)
method.set_key = event.download.inserted_new, auto_start_meta_in_load_dir, "branch=\"and={d.is_meta=,not=$d.state=}\",d.start="

# Display any valid timestamp value in human readable format or print the value itself (e.g.: 30/06/2013 23:47:33).
# Usage: hrf_time=<<timefield>> (e.g.: hrf_time=$d.creation_date= , hrf_time=$d.custom=tm_last_scrape)
# helper method: to display any timestamp field (e.g. d.creation_date= , d.custom=tm_last_scrape) in human readable format
Expand Down
7 changes: 4 additions & 3 deletions ubuntu-14.04/home/chros73/bin/addMagnetLink.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ categories=(
7 "movies"
8 "pictures"
9 "songs"
10 "fullseed"
11 "rotating"
10 "load"
11 "fullseed"
12 "rotating"
)
###### end: Edit ######

Expand All @@ -44,7 +45,7 @@ fi


# ncursed dialog command
dialog_cmd=(dialog --keep-tite --menu "Select category in rTorrent" 18 32 11)
dialog_cmd=(dialog --keep-tite --menu "Select category in rTorrent" 19 32 12)

# display the category selection dialog
choice=$("${dialog_cmd[@]}" "${categories[@]}" 2>&1 >/dev/tty)
Expand Down

0 comments on commit 6ab9900

Please sign in to comment.