From 4da1a590c21a81ea166d4cfef5d51088a15fea3c Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Tue, 14 Jun 2016 13:28:36 +0200 Subject: Pre-sort fields --- meta/torrent.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'meta') diff --git a/meta/torrent.go b/meta/torrent.go index 9b1b124..ccc8170 100644 --- a/meta/torrent.go +++ b/meta/torrent.go @@ -17,12 +17,12 @@ type File struct { } type Info struct { + Files []File `bencode:"files"` Length int `bencode:"length"` MD5Sum []byte `bencode:"md5sum,optional"` Name string `bencode:"name"` PieceLength int `bencode:"piece length"` Pieces []byte `bencode:"pieces"` - Files []File `bencode:"files"` Private bool `bencode:"private"` } @@ -118,8 +118,8 @@ type Torrent struct { AnnounceList [][]string `bencode:"announce-list,optional"` Comment string `bencode:"comment,optional"` CreatedBy string `bencode:"created by,optional"` - Encoding string `bencode:"encoding,optional"` CreationDate time.Time `bencode:"creation date,optional"` + Encoding string `bencode:"encoding,optional"` HTTPSeeds []string `bencode:"httpseeds,optional"` Info Info `bencode:"info"` URLList string `bencode:"url-list,optional"` -- cgit v1.2.3