Opened 9 years ago

Closed 8 years ago

#5309 closed Enhancement (wontfix)

Export piece hashes over RPC

Reported by: sergio Owned by:
Priority: Normal Milestone: None Set
Component: Web Client Version: 2.77
Severity: Normal Keywords:
Cc:

Description

In addition to the current information on torrent pieces, it would be nice to have the piece hashes exported over rpc as well to write rpc client side verification tools. This can be useful because transmissions torrent verify does not "return" anything useful over the rpc.

Change History (3)

comment:1 Changed 9 years ago by jordan

I'm not sure I understand this suggestion. Could you walk me through a use case where returning the piece hashes would be useful?

comment:2 Changed 9 years ago by sergio

It happens on occasion that torrents marked as completed are not actually completed because they have invalid pieces when calling verify. This can have a lot of reasons beyond transmissions control, e.g. file system corruption/disc errors. I would like to have a transmission-done script that calls verify to make sure that a torrent is actually completed in a healthy way. This is however not easy to do with the current verify rpc method since it does not return and thus cannot stop the transmission-done processing for incomplete torrents. To solve this currently requires reading the torrent file for piece information, but I think it would be nicer if one could get that information over the rpc.

comment:3 Changed 8 years ago by fx

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

This doesn't really sound like the responsibility of the web client. Nether does the purpose make any sense: If you have disk problems, having corrupt torrents is the least of your concerns, usually the disk won't live much longer anyway.

In addition to this, you can get completed pieces through RPC, and through transmission-remote as well, just not the hashes.

Please reopen this ticket if i've misunderstood your use-case

Note: See TracTickets for help on using tickets.