aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-06-14 13:28:36 +0200
committerDimitri Sokolyuk <demon@dim13.org>2016-06-14 13:28:36 +0200
commit4da1a590c21a81ea166d4cfef5d51088a15fea3c (patch)
treedef7278492383aaf9e2055c480e193948af6e79c
parent8c2becf66ba5a927564f13cb8e69f8bd6b972887 (diff)
Pre-sort fields
-rw-r--r--meta/torrent.go4
1 files changed, 2 insertions, 2 deletions
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"`