Skip to content

Commit

Permalink
config: added 'd.data_path' attribute (never empty, unlike 'd.base_pa…
Browse files Browse the repository at this point in the history
…th')
  • Loading branch information
pyroscope committed Mar 15, 2017
1 parent 7f42e73 commit b5ae3ed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion debian/changelog
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ pyrocore (0.5.1) precise; urgency=low
* pyroadmin: added '--create-import' action
* rtorrent config: added 'tagged' view handling
* rtorrent config: 'd.timestamp.downloaded' attribute (thanks @chros73)
* rtorrent config: 'd.data_path' attribute (never empty, unlike 'd.base_path')
* pyroadmin: added '--remove-all-rc-files' option
* UI: Rotate through color schemes with the '~' key
* UI: Rotate through category views using '<' and '>'
Expand All @@ -42,7 +43,7 @@ pyrocore (0.5.1) precise; urgency=low
* API: 'connect()' helper for easy interactive use
* API: added 'h.' helper namespace to templating

-- pyroscope <[email protected]> Mon, 06 Mar 2017 14:58:45 +0100
-- pyroscope <[email protected]> Wed, 15 Mar 2017 22:42:17 +0100

pyrocore (0.4.2) jaunty; urgency=low

Expand Down
4 changes: 4 additions & 0 deletions src/pyrocore/data/config/rtorrent.d/00-default.rc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ branch=pyro.extended=,\
# COMMAND: Return startup time (can be used to calculate uptime)
method.insert = startup_time, value|const, $system.time=

# COMMAND: Return path to item data (never empty, unlike `d.base_path`)
method.insert = d.data_path, simple,\
"if=(d.is_multi_file), (cat, (d.directory)), (cat, (d.directory), /, (d.name))"

# COMMAND: Return path to session file
method.insert = d.session_file, simple, "cat=(session.path), (d.hash), .torrent"

Expand Down

0 comments on commit b5ae3ed

Please sign in to comment.