Mojo-Transmission
view release on metacpan or search on metacpan
lib/Mojo/Transmission.pm view on Meta::CPAN
L<Mojo::Transmission> is a very lightweight client for exchanging data with
the Transmission BitTorrent daemon using RPC.
The documentation in this module might seem sparse, but that is because the API
is completely transparent regarding the data-structure received from the
L<Transmission API|https://trac.transmissionbt.com/browser/trunk/extras/rpc-spec.txt>.
=head1 SYNOPSIS
my $transmission = Mojo::Transmission->new;
$transmission->add(url => "http://releases.ubuntu.com/17.10/ubuntu-17.10.1-desktop-amd64.iso.torrent");
my $torrents = $transmission->torrent([]);
$transmission->torrent(remove => $torrents[0]->{id}) if @$torrents;
=head1 ATTRIBUTES
=head2 default_trackers
$array_ref = $transmission->default_trackers;
$transmission = $transmission->default_trackers([$url, ...]);
script/mojo-transmission view on Meta::CPAN
mojo-transmission - Command line utility for talking to a Transmission server
=head1 SYNOPSIS
# Tell mojo-transmission where the Transmission server is
# and optionally set default trackers
$ export TRANSMISSION_RPC_URL=http://10.0.0.2:9091
$ export TRANSMISSION_DEFAULT_TRACKERS=x,y,z
# Add a torrent either by URL or magnet hash
$ mojo-transmission add http://releases.ubuntu.com/18.04/ubuntu-18.04-desktop-amd64.iso.torrent
$ mojo-transmission add url=http://releases.ubuntu.com/18.04/ubuntu-18.04-desktop-amd64.iso.torrent
$ mojo-transmission add c12fe1c06bba254a9dc9f519b335aa7c1367a88a
$ mojo-transmission add xt=urn:btih:c12fe1c06bba254a9dc9f519b335aa7c1367a88a
# Get or set session parameters
# https://trac.transmissionbt.com/browser/trunk/extras/rpc-spec.txt#L444
$ mojo-transmission session
$ mojo-transmission session download-dir=/tmp encryption=tolerated
# Get statistics
$ mojo-transmission stats
( run in 0.324 second using v1.01-cache-2.11-cpan-299005ec8e3 )