You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think I have a workaround for this, so I'm asking mainly from a "Is there a better way to approach this?" perspective.
The short of it, I want to create a view specifically for items in the main working directory (e.g., ~/rtorrent/data). Other torrents could be working in other directories elsewhere or under data, but I only want to see those in that base folder. Since I'm working on vanilla rtorrent, string.contains is not available. My first thought was I could cat the working config with the name of the torrent. However, I couldn't create a working example via rpc. Here are some tests/results attempting to use cat in a representative manner.
rtxmlrpc d.multicall2 '' main d.name= 'cat=(d.hash=,d.name=)'
ERROR:pyrosimple.scripts.rtxmlrpc.RtorrentXmlRpc:While calling d.multicall2('', 'main', 'd.name=', 'cat=(d.hash=,d.name=)') via <RTorrentProxy via xml for scgi+unix:///~/private/rtorrent/.socket>: <RpcError -503: 'Command "d.hash=" does not exist.'>
rtxmlrpc d.multicall2 '' main d.name= 'cat=(d.hash,d.name)'
['Fun Torrent', '5F69558086CB1FDA5A64BEC33A02BE94EC6BD8C7']
rtxmlrpc d.multicall2 '' main d.name= 'cat=(d.hash,cat=d.name)'
['Fun Torrent', '5F69558086CB1FDA5A64BEC33A02BE94EC6BD8C7']
rtxmlrpc d.multicall2 '' main d.name= 'cat=(d.hash,cat=(d.name))'
ERROR:pyrosimple.scripts.rtxmlrpc.RtorrentXmlRpc:While calling d.multicall2('', 'main', 'd.name=', 'cat=(d.hash,cat=(d.name))') via <RTorrentProxy via xml for scgi+unix:///~/private/rtorrent/.socket>: <RpcError -503: 'Junk at end of input.'>
rtxmlrpc d.multicall2 '' main d.name= 'cat=d.hash,d.name'
['Fun Torrent', 'd.hashd.name']
rtxmlrpc d.multicall2 '' main d.name= 'cat=d.hash=,d.name='
['Fun Torrent', 'd.hash=d.name=']
# I know this doesn't work, but gave it a try anyway
rtxmlrpc d.multicall2 '' main d.name= '(cat,(d.hash),(d.name))'
ERROR:pyrosimple.scripts.rtxmlrpc.RtorrentXmlRpc:While calling d.multicall2('', 'main', 'd.name=', '(cat,(d.hash),(d.name))') via <RTorrentProxy via xml for scgi+unix:///~/private/rtorrent/.socket>: <RpcError -503: 'Invalid start of command name.'>
I'd be interested in seeing such an command, but my experience/understanding just isn't sufficient. I know the rpc commands are formatted differently than those used in the config, but I wanted to proof it before adding to the config. I think the config would look something like:
# Data view
view.add = data
schedule2 = filter_data,1,5,"view.filter = data,((equal, ((cat, ((cfg.download)), ((d.name)) )) ))"
where cfg.download is set to the data directory.
What I've settled for is
# Watch Scheduling - add value for rutorrent label
schedule2 = watch_data,1,2,"load.start=(cat,(cfg.watch),\"*.torrent\"),d.delete_tied=,d.custom1.set=Data"
# Data view
view.add = data
schedule2 = filter_data,1,5,"view.filter = data,\"equal=cat=$d.custom1=,cat=Data\""
I'm using the old notation to match what I've done previously, but I plan to experiment with the new notation once I have a point where I can bounce rtorrent repeatedly (currently in the middle of a large download I do not want to disrupt).
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I think I have a workaround for this, so I'm asking mainly from a "Is there a better way to approach this?" perspective.
The short of it, I want to create a view specifically for items in the main working directory (e.g.,
~/rtorrent/data
). Other torrents could be working in other directories elsewhere or underdata
, but I only want to see those in that base folder. Since I'm working on vanilla rtorrent,string.contains
is not available. My first thought was I couldcat
the working config with the name of the torrent. However, I couldn't create a working example via rpc. Here are some tests/results attempting to usecat
in a representative manner.I'd be interested in seeing such an command, but my experience/understanding just isn't sufficient. I know the rpc commands are formatted differently than those used in the config, but I wanted to proof it before adding to the config. I think the config would look something like:
where
cfg.download
is set to thedata
directory.What I've settled for is
I'm using the old notation to match what I've done previously, but I plan to experiment with the new notation once I have a point where I can bounce rtorrent repeatedly (currently in the middle of a large download I do not want to disrupt).
schedule2 = filter_data,1,5,"view.filter = data,((equal, ((d.custom1)), ((cat, \"Data\")) ))"
Beta Was this translation helpful? Give feedback.
All reactions