From 9afa2e70d789720662525d97920b38a972d76f82 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Wed, 17 Jul 2019 15:28:49 +1000 Subject: [PATCH] cmd/torrent-metainfo-pprint: Fix -files for single-file torrents --- cmd/torrent-metainfo-pprint/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/torrent-metainfo-pprint/main.go b/cmd/torrent-metainfo-pprint/main.go index ec78facf..73532ee3 100644 --- a/cmd/torrent-metainfo-pprint/main.go +++ b/cmd/torrent-metainfo-pprint/main.go @@ -47,7 +47,7 @@ func processReader(r io.Reader) error { "UrlList": metainfo.UrlList, } if flags.Files { - d["Files"] = info.Files + d["Files"] = info.UpvertedFiles() } if flags.PieceHashes { d["PieceHashes"] = func() (ret []string) {