Luminarys / synapse

Synapse BitTorrent Daemon
https://synapse-bt.org
ISC License
853 stars 48 forks source link

Show individual files as complete after importing a torrent #188

Closed armerpunkt closed 4 years ago

armerpunkt commented 4 years ago

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.

Luminarys commented 4 years ago

Thanks!