From b5ae3ed88371cdb51da1107cb37ab64bebafb3fa Mon Sep 17 00:00:00 2001 From: pyroscope Date: Wed, 15 Mar 2017 22:53:44 +0100 Subject: [PATCH] config: added 'd.data_path' attribute (never empty, unlike 'd.base_path') --- debian/changelog | 3 ++- src/pyrocore/data/config/rtorrent.d/00-default.rc | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 50e34713..73ea60df 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 '>' @@ -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 Mon, 06 Mar 2017 14:58:45 +0100 + -- pyroscope Wed, 15 Mar 2017 22:42:17 +0100 pyrocore (0.4.2) jaunty; urgency=low diff --git a/src/pyrocore/data/config/rtorrent.d/00-default.rc b/src/pyrocore/data/config/rtorrent.d/00-default.rc index 0f227a18..7f600bbd 100644 --- a/src/pyrocore/data/config/rtorrent.d/00-default.rc +++ b/src/pyrocore/data/config/rtorrent.d/00-default.rc @@ -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"