torrent-metainfo-pprint: include the 'nodes' field into the output when non-empty
This commit is contained in:
parent
c04f09ee42
commit
6ea0344efd
|
@ -47,6 +47,9 @@ func processReader(r io.Reader) error {
|
|||
"AnnounceList": metainfo.AnnounceList,
|
||||
"UrlList": metainfo.UrlList,
|
||||
}
|
||||
if len(metainfo.Nodes) > 0 {
|
||||
d["Nodes"] = metainfo.Nodes
|
||||
}
|
||||
if flags.Files {
|
||||
d["Files"] = info.UpvertedFiles()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue