|
@@ -4,7 +4,8 @@ module RSeed
|
|
|
class Rtorrent
|
|
|
|
|
|
def initialize(host, path, port)
|
|
|
- @client = XMLRPC::Client.new(host, path, port)
|
|
|
+ @client = XMLRPC::Client.new(host, path, port, nil, nil, nil, nil, true, nil)
|
|
|
+ @client.instance_variable_get(:@http).instance_variable_set(:@verify_mode, OpenSSL::SSL::VERIFY_NONE)
|
|
|
puts "#{host}, #{path}, #{port}"
|
|
|
end
|
|
|
|
|
@@ -18,6 +19,7 @@ module RSeed
|
|
|
end
|
|
|
columns = ["name", "completed_bytes", "size_bytes", "ratio", "up", "down", "hash"]
|
|
|
formated_response = response.map { |row| Hash[*columns.zip(row).flatten] }
|
|
|
+ formated_response.sort_by! { |hsh| hsh["name"] }
|
|
|
return formated_response
|
|
|
end
|
|
|
|