0.0.1 • Published 4 years ago

@eanzie/node-deluge-to-rtorrent v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

@eanzie/node-deluge-to-rtorrent

Module for moving a torrent from deluge to rtorrent.

Installation

npm install @eanzie/node-deluge-to-rtorrent

Usage

Node

const delugeToRtorrent = new DelugeToRtorrent(delugeOptions, rtorrentOptions, delugeStatePath, torrentTempPath);
delugeToRtorrent.init();
delugeToRtorrent.connect(function(err) {
    delugeToRtorrent.getTorrents(function (torrents) {
        delugeToRtorrent.findOldest(torrents, function (torrent) {
            delugeToRtorrent.fastReloadTorrent(torrent, function (torrent) {
                delugeToRtorrent.start(torrent, function (torrent) {
                   // success
                });
            });
        });
    });
});

License

MIT