QbittorrentClient
A Qbittorrent Web API Client, only support WebUI API (qBittorrent 4.1+).
Installation
Add this line to your application's Gemfile:
gem 'qbittorrent'
And then execute:
$ bundle install
Or install it yourself as:
$ gem install qbittorrent
Usage
client = QBittorrent::Api.new("http://localhost:8080", "admin", "password")
Authentication
Login
client.login
Logout
client.logout
Application
Get application version
client.application_version
Get API version
client.api_version
Get build info
client.build_info
Get application preferences
client.preferences
Set application preferences
client.set_preferences()
Shutdown application
client.shutdown
Get default save path
client.default_save_path
Get torrent list
client.get_torrents()
Delete torrents
client.delete_torrents(hashes, delete_files)
Add new torrents
client.add_torrents(urls_of_file_path, )
Reannounce torrents
client.reannounce(hashes)
License
The gem is available as open source under the terms of the MIT License.