From 4cd179bf51c3f64ef55bd9d118fda623b826958a Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Sun, 12 Jun 2016 07:18:17 +0200 Subject: Announce-list is list of lists --- meta/torrent.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'meta/torrent.go') diff --git a/meta/torrent.go b/meta/torrent.go index 56a6a97..6a510cb 100644 --- a/meta/torrent.go +++ b/meta/torrent.go @@ -19,13 +19,13 @@ type Info struct { } type Torrent struct { - Announce string `bencode:"announce"` - AnnounceList []string `bencode:"announce-list,optional"` - Comment string `bencode:"comment,optional"` - CreatedBy string `bencode:"created by,optional"` - CreationDate time.Time `bencode:"creation date,optional"` - HTTPSeeds []string `bencode:"httpseeds,optional"` - Info Info `bencode:"info"` - URLList string `bencode:"url-list,optional"` - InfoHash []byte `bencode:"-"` + Announce string `bencode:"announce"` + AnnounceList [][]string `bencode:"announce-list,optional"` + Comment string `bencode:"comment,optional"` + CreatedBy string `bencode:"created by,optional"` + CreationDate time.Time `bencode:"creation date,optional"` + HTTPSeeds []string `bencode:"httpseeds,optional"` + Info Info `bencode:"info"` + URLList string `bencode:"url-list,optional"` + InfoHash []byte `bencode:"-"` } -- cgit v1.2.3