cmd/torrent-metainfo-pprint: Also print InfoHash

This commit is contained in:
Matt Joiner 2016-05-02 19:14:49 +10:00
parent 7044161faa
commit 1936054615
1 changed files with 1 additions and 0 deletions

View File

@ -37,6 +37,7 @@ func main() {
"Name": info.Name,
"NumPieces": info.NumPieces(),
"PieceLength": info.PieceLength,
"InfoHash": metainfo.Info.Hash.HexString(),
}
if flags.PieceHashes {
d["PieceHashes"] = func() (ret []string) {