From 910a5ae2c7ac25184afed9334f271581deb31fd1 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Wed, 6 Jul 2016 02:12:40 +0200 Subject: Prettyprint --- cmd/btshow/main.go | 2 -- meta/torrent.go | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/cmd/btshow/main.go b/cmd/btshow/main.go index 467fb34..51b6c9d 100644 --- a/cmd/btshow/main.go +++ b/cmd/btshow/main.go @@ -4,7 +4,6 @@ import ( "fmt" "io/ioutil" "log" - "net/url" "os" "dim13.org/btget/bencode" @@ -33,5 +32,4 @@ func main() { log.Fatal(err) } fmt.Println(tor) - fmt.Println(url.QueryEscape(string(tor.InfoHash))) } diff --git a/meta/torrent.go b/meta/torrent.go index a6fecf0..7ab4bec 100644 --- a/meta/torrent.go +++ b/meta/torrent.go @@ -210,6 +210,6 @@ func (t Torrent) String() string { s += fmt.Sprintf("comment: %s\n", t.Comment) s += fmt.Sprintf("date: %s\n", t.CreationDate) s += fmt.Sprintf("%v", t.Info) - s += fmt.Sprintf("info hash: %x", t.InfoHash) + s += fmt.Sprintf("info hash: % x", t.InfoHash) return s } -- cgit v1.2.3