Skip (un)wanted-files requests if list is empty #2

merged 1 commit into from Aug 17, 2012


None yet
2 participants

olof commented Aug 13, 2012


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.

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

Skip (un)wanted-files requests if list is empty
Transmission treats an empty list as a list of all files.

jhthorsen added a commit that referenced this pull request Aug 17, 2012

Merge pull request #2 from olof/fix/write_wanted_skip_empty_list
Skip (un)wanted-files requests if list is empty

@jhthorsen jhthorsen merged commit 3aad401 into olof:master Aug 17, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment