ITADN

`Torrent.pieces` is not user-friendly

#484Closeddechamps 创建于 2024-09-01
D
dechampscommented
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.
关闭于 2024-12-13 2 条评论