transmission-rpc icon indicating copy to clipboard operation
transmission-rpc copied to clipboard

`Torrent.pieces` is not user-friendly

Open dechamps opened this issue 5 months ago • 2 comments

Currently, the Torrent.pieces field is the same as the pieces field in the Transmission RPC response, that is:

A bitfield holding pieceCount flags which are set to 'true' if we have the piece matching that position. JSON doesn't allow raw binary data, so this is a base64-encoded string.

While this makes sense for JSON, Python can do better. transmission-rpc could at least base64-decode the field to binary, or even better, could expose it as a list of bools.

dechamps avatar Sep 01 '24 15:09 dechamps