Subject: | Patch for utorrent 2.0 |
When using uTorrent 2.0 on Windows (released 2/6/10), the query string
needs to go in a slightly different order, as detailed here:
http://forum.utorrent.com/viewtopic.php?pid=451624
This ugly patch seems to fix the problem:
sub api_query_result {
my (@params) = @_;
my $api = URI->new($api_url);
for my $array_value (@params) {
for my $key (keys %$array_value) {
$api->query_param_append($key => $$array_value{$key});
}
}
my $str = $api;
$str =~ s/(gui\/\?)/$1token=$token&/;
return $ua->get($str)->decoded_content;
}
Thanks again for the original module, it is awesome.
-d