jhthorsen/transmission-client — pull request #2 by olof (2012-08-13 17:43:15+00:00)
Title: Skip (un)wanted-files requests if list is empty

Hi,

If i set all files in a torrent to wanted through Transmission::Client, transmission
sets all to unwanted. This is because Transmission::Client sends a empty list
for the unwanted files.

https://trac.transmissionbt.com/browser/trunk/extras/rpc-spec.txt#L121

> Just as an empty "ids" value is shorthand for "all ids", using an
> empty array for "files-wanted", "files-unwanted", "priority-high",
> "priority-low", or "priority-normal" is shorthand for saying "all
> files"."