set_files set priority for unmentioned files to low

Issue #29 resolved
kriomant
created an issue

Transmission threats empty list for //priority-low/normal/high// parameters as "all files". And transmissionrpc always sends all three parameters.

So

{{{

!python

client.set_files({'torrent-hash': { 1: {'priority': 'normal'}, 2: {'priority': 'high'}, }}) }}}

will send

{{{

!javascript

{ 'priority-low': [], 'priority-high': [2], 'priority-normal': [1], } }}}

which is interpreted as "set normal priority to file 1, high to file 2 and low to all other files". And even worse, seems like "priority-low" parameter is handled after "priority-high", so "low" priority will be set even for files with "high" priority requested.

Comments (3)

  1. Log in to comment