Closed TMD20 closed 1 year ago
Yep, your understanding is correct and this was indeed a bug. The tricky part is that d.custom1
and d.custom=1
are two distinct values, and the code wasn't properly distinguishing between the two. Now the custom_1
field should always reference d.custom1
as expected.
I'm been looking through this code for a bit.
I think I'm starting to understand how it works a little bit. From what I can tell There is a class called torrentproxy, that stores some information on how to retrieve data from rtorrent via a descriptor class
The issue that I am seeing is that the fielddescriptor object created for a custom class . Does not have the right query setup
For example
command rtcontrol ratio=+0 custom_1=TV
d.custom=1 is not being set for some reason
This ends up with no items being added The end result is an empty list
I can get it to work by switching this line accessor=lambda o: o.rpc_call("d.custom", [custom_name]), to accessor=lambda o: o.rpc_call(f"d.custom{custom_name}"),