rakshasa / rtorrent

rTorrent BitTorrent client
https://github.com/rakshasa/rtorrent/wiki
GNU General Public License v2.0
4.07k stars 408 forks source link

How to use the d.multicall.filtered command #1059

Closed averri closed 3 years ago

averri commented 3 years ago

I have tried to run the d.multicall.filtered command by following the documentation presented here: https://rtorrent-docs.readthedocs.io/en/latest/cmd-ref.html

... but the command did not work.

Could you please provide an example about how to use the d.multicall.filtered command?

pyroscope commented 3 years ago

"did not work" does not work as a basis for diagnostics. Also "See elapsed.greater for an example."

averri commented 3 years ago

Apologies for not adding more information, I agree with that.

I'm invoking the backend via xmlrpc, with a JS client api, ref: https://github.com/baalexander/node-xmlrpc. All invocations work fine, except the d.multicall.filtered.

This is one example of the arguments for the call to d.multicall.filtered:

["", "started", "string.equals=(d.is_private),1", "d.name=", "d.hash="]

The above command returns an empty array, and it should return 20 items.

This is another example for a d.multicall2 arguments that works fine, returning all started downloads:

["", "started", "d.name=", "d.hash=" ]
pyroscope commented 3 years ago

equal=d.is_private=,value=1

averri commented 3 years ago

Hello @pyroscope, thank you so much, the command ["", "started", "equal=d.is_private=,value=1", "d.name=", "d.hash=" ] worked perfectly.

Could you please let us know where this syntax equal=d.is_private=,value=1 is documented? I would like to use all other predicates for filtering.

pyroscope commented 3 years ago

Read all of rtorrent-docs, that besides the source is the best you get. And study the examples (config templates) in my projects.