Net::uTorrent - Perl interface to the uTorrent API.
my $utorrent = Net::uTorrent->new ( hostname => 'localhost', port => '12345', user => 'my_username', pass => 'my_password', ); die unless $utorrent->login_success;
Net::uTorrent is an object oriented interface to the uTorrent API. This module requires the uTorrent WebUI to be enabled.
Examples: $utorrent->torrents; $utorrent->torrents( cid => 'abcd' );
Examples: $utorrent->get_settings; $utorrent->get_settings('hash');
Examples: $utorrent->set_settings ( max_ul_rate => 5000, max_dl_rate => 10000 );
Examples: $utorrent->filelist(qw '43E2DFD8279552543DABA81E5FCCEA2539C81D1F 663C531B51C9A466B9757282B438F635E64AC3CA');
Examples: $utorrent->get_properties(qw '43E2DFD8279552543DABA81E5FCCEA2539C81D1F 663C531B51C9A466B9757282B438F635E64AC3CA');
Examples: $utorrent->set_properties ( { hash => '43E2DFD8279552543DABA81E5FCCEA2539C81D1F', ulrate => 1740, # Upload speed in bytes/second }, { hash => '663C531B51C9A466B9757282B438F635E64AC3CA', ulrate => 7135, dlrate => 8330 } );
Examples: $utorrent->set_priority ( hash => '43E2DFD8279552543DABA81E5FCCEA2539C81D1F', files => [1,2,3], priority => 3 # (0 = skip, 1 = low, 2 = normal, 3 = high) );
Examples: $utorrent->add_file('fedora_11_dvd.torrent');
Examples: $utorrent->add_url('http://torrent.fedoraproject.org/torrents//Fedora-11-i686-Live.torrent');
Examples: $utorrent->start(qw '43E2DFD8279552543DABA81E5FCCEA2539C81D1F 663C531B51C9A466B9757282B438F635E64AC3CA');
Examples: $utorrent->stop(qw '43E2DFD8279552543DABA81E5FCCEA2539C81D1F 663C531B51C9A466B9757282B438F635E64AC3CA');
Examples: $utorrent->pause(qw '43E2DFD8279552543DABA81E5FCCEA2539C81D1F 663C531B51C9A466B9757282B438F635E64AC3CA');
Examples: $utorrent->resume(qw '43E2DFD8279552543DABA81E5FCCEA2539C81D1F 663C531B51C9A466B9757282B438F635E64AC3CA');
Examples: $utorrent->force_start(qw '43E2DFD8279552543DABA81E5FCCEA2539C81D1F 663C531B51C9A466B9757282B438F635E64AC3CA');
Examples: $utorrent->recheck(qw '43E2DFD8279552543DABA81E5FCCEA2539C81D1F 663C531B51C9A466B9757282B438F635E64AC3CA');
Examples: $utorrent->remove_torrent(qw '43E2DFD8279552543DABA81E5FCCEA2539C81D1F 663C531B51C9A466B9757282B438F635E64AC3CA');
Examples: $utorrent->remove_data(qw '43E2DFD8279552543DABA81E5FCCEA2539C81D1F 663C531B51C9A466B9757282B438F635E64AC3CA');
http://forum.utorrent.com/viewtopic.php?id=25661
rarbox, <rarbox@cpan.org>
Copyright (C) 2009 by rarbox
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.0 or, at your option, any later version of Perl 5 you may have available.
To install Net::uTorrent, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::uTorrent
CPAN shell
perl -MCPAN -e shell install Net::uTorrent
For more information on module installation, please visit the detailed CPAN module installation guide.