Closed chaos369 closed 3 years ago
According to the interface, the path parameter is needed to get the actual data. Is there any way to list the files in a infohash? How to parse the result of /info?ih= ?
GET /data?ih=&path=.
The contents of an info are per https://pkg.go.dev/github.com/anacrolix/torrent@v1.20.0/metainfo#Info, which can be unmarshalled with https://pkg.go.dev/github.com/anacrolix/torrent@v1.20.0/bencode.
Got it.
According to the interface, the path parameter is needed to get the actual data. Is there any way to list the files in a infohash? How to parse the result of /info?ih= ?
GET /data?ih=&path=.