https://github.com/idlesign/deluge-webapi
Plugin for Deluge WebUI providing sane JSON API.
Exposes some sane JSON API through Deluge WebUI (missing out of the box or restyled) so that you can manipulate Deluge from your programs using HTTP requests.
Supported methods:
get_torrentsadd_torrent(magnet or file)remove_torrentget_api_version
Deluge is a lightweight, Free Software, cross-platform BitTorrent client. Download it at http://deluge-torrent.org/
Note
Use egg version 0.4.0 or higher for Deluge 2
Note
Use egg version 0.3.2 or lower for Deluge 1.x
- Get plugin egg file, from
dist/(https://github.com/idlesign/deluge-webapi/tree/master/dist) directory. - Open Deluge Web UI, go to "Preferences -> Plugins -> Install plugin" and choose egg file.
- Activate
WebAPIplugin. - In case you use Client-Server setup, you'll need to install the plugin both on client and server, see - https://dev.deluge-torrent.org/wiki/Plugins#Client-ServerSetups
CORS headers can be enabled in the plugin settings along with a list of allowed origins. The settings are applied when the Web UI plugin part is enabled, so changing them requires a Web UI restart to take effect.
Note
To build the .egg file from source code yourself use python -c "from setuptools import setup; setup()" bdist_egg
in the source code directory (or ./pub.sh to build and publish).