From 9c36d366542e69cb8a6ec99096337a2af59ba548 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Fri, 6 May 2016 15:09:59 +1000 Subject: [PATCH] cmd/torrent-infohash update for API changes --- cmd/torrent-infohash/main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/torrent-infohash/main.go b/cmd/torrent-infohash/main.go index 4fb7004b..93ae336a 100644 --- a/cmd/torrent-infohash/main.go +++ b/cmd/torrent-infohash/main.go @@ -5,11 +5,13 @@ import ( "log" "github.com/anacrolix/tagflag" + "github.com/anacrolix/torrent/metainfo" ) func main() { var args struct { + tagflag.StartPos Files []string `arity:"+" type:"pos"` } tagflag.Parse(&args) @@ -18,6 +20,6 @@ func main() { if err != nil { log.Fatal(err) } - fmt.Printf("%x: %s\n", mi.Info.Hash, arg) + fmt.Printf("%s: %s\n", mi.Info.Hash().HexString(), arg) } }