aboutsummaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-06-12 07:18:17 +0200
committerDimitri Sokolyuk <demon@dim13.org>2016-06-12 07:18:17 +0200
commit4cd179bf51c3f64ef55bd9d118fda623b826958a (patch)
tree9d24cea2859b6ae0c275646fc19e7cda0c2588ab /meta
parent92b93449373418da481369078208bd8630d67c41 (diff)
Announce-list is list of lists
Diffstat (limited to 'meta')
-rw-r--r--meta/torrent.go18
1 files changed, 9 insertions, 9 deletions
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:"-"`
}