RTransmission
Ruby Transmission Bindings
Basic Usage
requre 'rtransmission'
RTransmission::Client.new(:user => 'foo', :password => 'bar') do |client|
url = 'http://torrents.gentoo.org/torrents/livedvd-x86-amd64-32ul-11.1.torrent'
torrent = RTransmission::Torrent.add(client, :url => url)
torrent = RTransmission::Torrent.list(client)[0]
files = torrent.files
files.each { |f| puts f.name }
torrent.upload_limited = false
end
Copyright (c) 2011, Andrew Kirilenko [email protected]
All rights reserved.
Use of this source code is governed by a BSD-style license that can be found in the COPYING file.