Opened 8 years ago

Closed 6 years ago

#5615 closed Bug (invalid)

rpc method "torrent-add" has something wrong

Reported by: xkxpiao Owned by:
Priority: Normal Milestone: None Set
Component: Transmission Version: 2.82
Severity: Normal Keywords:
Cc:

Description

when use "torrent-add" method,I find that the arg--"files-wanted" do not work.

eg: I add the argument "files-wanted":[0,1,2] on "torrent-add" method.

I just want [0,1,2] index of the files. but it downloads all of the files in a torrent.

I also have tried the "files-unwanted" ,and it works.

Change History (1)

comment:1 Changed 6 years ago by mike.dld

  • Resolution set to invalid
  • Status changed from new to closed

By default, all files are selected, so there is no point in using "files-wanted" alone with "torrent-add". When call is being processed, "files-unwanted" is handled first and "files-wanted" second, so to tell Transmission that you only want specific files downloaded you need to pass both: [] as "files-unwanted" (empty array means "all"), and [0, 1, 2] as "files-wanted".

Note: See TracTickets for help on using tickets.