NAME
P2P::Transmission::Remote - Control Transmission using its Remote API
SYNOPSIS
use P2P::Transmission::Remote;
my $client = P2P::Transmission::Remote->new;
for my $torrent ($client->torrents) {
print $torrent->{name};
$client->stop($torrent);
}
DESCRIPTION
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).
METHODS
- url
-
Gets and sets the URL of Transmission Remote API. Defaults to http://localhost:9091/.
- user_agent
-
Gets and sets the User Agent object to make API calls.
- torrents
-
my @torrents = $client->torrents;
Gets the list of Torrent data.
- start, stop, remove
-
$client->start(@torrents); $client->stop(@torrents); $client->remove(@torrents);
Starts, stops and removes the torrent transfer.
- upload
-
$client->upload($torrent_path);
Adds a new torrent by uploading the file.
AUTHOR
Tatsuhiko Miyagawa <miyagawa@cpan.org>
LICENSE
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.