Subject: | ids as hashes |
Date: | Fri, 22 Apr 2011 13:48:23 +0400 |
To: | bug-transmission-client [...] rt.cpan.org |
From: | Ukolov Anton <antonuk84 [...] yandex.ru> |
Hi, Jan!
Thanks for you work, Transmission::Client is pretty well module.
We use it to work with transmission. Rpc-spec of transmission allows to use hash_strings as ids:
https://trac.transmissionbt.com/browser/trunk/extras/rpc-spec.txt#L76
But in your code in Transmission::Client (at lines 541-543):
# make sure ids are numeric
if(ref $args{'ids'} eq 'ARRAY') {
$_ += 0 for(@{ $args{'ids'} });
}
you translate all hash_strings in array_ref to numbers. And hashes (such as '529f5fd6564932a32ae11bede156c2b8c0a113ea') will be zeros.
It overlaps awesome feature of transmission.
That is reason to do it?
Is it bug or feature of your module?
Thanks.
With best reagrds,
Anton Ukolov