rakshasa / rtorrent

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

Using rtorrent.throttle.global_up.max_rate.set_kb to set upload rate returns error #1056

Closed evilbulgarian closed 3 years ago

evilbulgarian commented 3 years ago

Trying to set upload rate via: rtorrent.throttle.global_up.max_rate.set_kb but getting 'Unsupported target type found' when i pass it a 1500k or 1500 strings what am I doing wrong thanks.

pyroscope commented 3 years ago

Read https://rtorrent-docs.readthedocs.io/en/latest/scripting.html#using-xmlrpc-for-remote-control

Also, use Reddit for support, not issues.

darena67 commented 3 years ago

hahah ok figured it out looked at the code on github "CMD2_REDIRECT_GENERIC("upload_rate", "throttle.global_up.max_rate.set_kb");" so using upload_rate works instead of that throttle.global..

pyroscope commented 3 years ago

That is an alias, and they WILL disappear (and already have for some groups). Also close this to reduce the clutter.

evilbulgarian commented 3 years ago

looked at the code on github "CMD2_REDIRECT_GENERIC("upload_rate", "throttle.global_up.max_rate.set_kb");" so using upload_rate works instead of that throttle.global..