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,
|
"AnnounceList": metainfo.AnnounceList,
|
||||||
"UrlList": metainfo.UrlList,
|
"UrlList": metainfo.UrlList,
|
||||||
}
|
}
|
||||||
|
if len(metainfo.Nodes) > 0 {
|
||||||
|
d["Nodes"] = metainfo.Nodes
|
||||||
|
}
|
||||||
if flags.Files {
|
if flags.Files {
|
||||||
d["Files"] = info.UpvertedFiles()
|
d["Files"] = info.UpvertedFiles()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user