P2P::Transmission::Remote - Control Transmission using its Remote API
use P2P::Transmission::Remote; my $client = P2P::Transmission::Remote->new; for my $torrent ($client->torrents) { print $torrent->{name}; $client->stop($torrent); }
P2P::Transmission::Remote is a client module to control torrent software Transmission using its Remote API. You need to enable its Remote and allows access from your client machine (usually localhost).
Gets and sets the URL of Transmission Remote API. Defaults to http://localhost:9091/.
Gets and sets the User Agent object to make API calls.
my @torrents = $client->torrents;
Gets the list of Torrent data.
$client->start(@torrents); $client->stop(@torrents); $client->remove(@torrents);
Starts, stops and removes the torrent transfer.
$client->upload($torrent_path);
Adds a new torrent by uploading the file.
Tatsuhiko Miyagawa <miyagawa@cpan.org>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
P2P::Transmission
To install P2P::Transmission::Remote, copy and paste the appropriate command in to your terminal.
cpanm
cpanm P2P::Transmission::Remote
CPAN shell
perl -MCPAN -e shell install P2P::Transmission::Remote
For more information on module installation, please visit the detailed CPAN module installation guide.