3 # (c) 2008 by Ralf Ertzinger <ralf@camperquake.de>
4 # licensed under GNU GPL v2
6 package xmlrtorrent::RTorrentTalkerBase;
7 use xmlrtorrent::TalkerBase;
8 @ISA = qw(xmlrtorrent::TalkerBase);
15 my $self = $class->SUPER::new();
19 $self->_prepare_parameters();
29 $res = $self->send_request('load_start', $url);
31 $self->{'__ERROR'} = $res;
35 if ($res->is_fault()) {
36 $self->{'__ERROR'} = $res->value()->{'faultString'};
48 $res = $talker->send_request('d.multicall', '',
56 $self->{'__ERROR'} = $res;
60 if ($res->is_fault()) {
61 $self->{'__ERROR'} = $res->value()->{'faultString'};
66 foreach (@{$res->value()}) {
69 'NAME' => $_->[0]->value(),
70 'SIZE_BYTES' => $_->[1]->value(),
71 'BYTES_DONE' => $_->[2]->value(),
72 'UP_RATE' => $_->[3]->value(),
73 'DOWN_RATE' => $_->[4]->value(),
74 'ACTIVE' => $_->[5]->value(),