When adding a torrent with the import option, it would not show the individual files as complete. I went through the code in the disk::Response::ValidationComplete function and found that adding self.files.rebuild(&self.info, &self.pieces); and self.update_rpc_transfer(); make the files appear as complete. Adding self.rpc_update_pieces(); and self.announce_status(); had no effect, so I did not add them.
When adding a torrent with the import option, it would not show the individual files as complete. I went through the code in the
disk::Response::ValidationComplete
function and found that addingself.files.rebuild(&self.info, &self.pieces);
andself.update_rpc_transfer();
make the files appear as complete. Addingself.rpc_update_pieces();
andself.announce_status();
had no effect, so I did not add them.