t3hk0d3 / deluge-rpc Goto Github PK
View Code? Open in Web Editor NEWRuby RPC client library for Deluge torrent client.
License: MIT License
Ruby RPC client library for Deluge torrent client.
License: MIT License
Attempting to get torrents' status using this method (from the README):
client.core.get_torrents_status({}, ['name', 'hash'])
returns this error:
#<NoMethodError: undefined method `bytesize' for ["6ebb0596f16e8dca6635921c5e125f293e4cecad", {"name"=>"archlinux-2023.03.01-x86_64.iso", "hash"=>"6ebb0596f16e8dca6635921c5e125f293e4cecad"}]:Array>
Hello,
I'm unable to connect to deluge 2, I get this error upon connection:
Traceback (most recent call last):
8: from /usr/bin/irb:23:in `<main>'
7: from /usr/bin/irb:23:in `load'
6: from /usr/lib/ruby/gems/2.7.0/gems/irb-1.2.6/exe/irb:11:in `<top (required)>'
5: from (irb):7
4: from /home/cloud/.gem/ruby/2.7.0/gems/deluge-rpc-0.2.0/lib/deluge/rpc/client.rb:18:in `connect'
3: from /home/cloud/.gem/ruby/2.7.0/gems/deluge-rpc-0.2.0/lib/deluge/rpc/connection.rb:70:in `authenticate'
2: from /home/cloud/.gem/ruby/2.7.0/gems/deluge-rpc-0.2.0/lib/deluge/rpc/connection.rb:107:in `call'
1: from /home/cloud/.gem/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/concern/obligation.rb:101:in `value!'
Deluge::Rpc::Connection::RPCError (IncompatibleClient)
this is the sample code I used:
require 'deluge'
client = Deluge::Rpc::Client.new \
host: 'localhost', port: 58846,
login: 'myuser', password: 'mypass'
client.connect
These are my system specs:
uname -ra
=> Linux raoul 5.10.92-v7l+ #1514 SMP Mon Jan 17 17:38:03 GMT 2022 armv7l GNU/Linuxcat /etc/debian_version
=> 11.2ruby --version
=> ruby 2.7.4p191 (2021-07-07 revision a21a3b7d23) [arm-linux-gnueabihf]deluged --version
deluged 2.0.3
libtorrent: 1.2.9.0
Python: 3.9.2
OS: Linux Raspbian GNU/Linux 11 bullseye
Can you help me?
Hello,
I am using the sample code from the Usage section and although everything seems to be working correctly, the events of the example do not seem to work when I am adding/removing a torrent from Deluge WebUI to my deluge daemon. Is there something else that I need to enable in order to get those events? Is it a problem the fact that i am adding the torrent from Deluge WebUI?
Thank you for your time
deluge -v
deluge 2.0b1
libtorrent: 1.1.4.0
Python: 2.7.12
OS: Linux Ubuntu 16.04 xenial
require 'deluge'
# Initialize client
client = Deluge::Rpc::Client.new(
host: 'localhost', port: 58846,
login: 'localclient', password: '9b20625ef11fc963dbc1bee0a1ac9967808d1b20'
)
client.connect
puts client.api_methods
/var/lib/gems/2.3.0/gems/deluge-rpc-0.1.3/lib/deluge/rpc/connection.rb:105:in `call': Failed to retreive response for 'daemon.login' in 5.0 seconds. Probably method not exists. (Deluge::Rpc::Connection::InvokeTimeoutError)
from /var/lib/gems/2.3.0/gems/deluge-rpc-0.1.3/lib/deluge/rpc/connection.rb:65:in `authenticate'
from /var/lib/gems/2.3.0/gems/deluge-rpc-0.1.3/lib/deluge/rpc/client.rb:18:in `connect'
from test.rb:9:in `<main>'
rouble to help me look
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.