@@ -119,21 +119,21 @@ type torrentGetResults struct {
119
119
// Torrent represents all the possible fields of data for a torrent.
120
120
// All fields are pointers to detect if the value is nil (field not requested) or real default value.
121
121
type Torrent struct {
122
- ActivityDate * time.Time `json:"- "`
123
- AddedDate * time.Time `json:"- "`
122
+ ActivityDate * time.Time `json:"activityDate "`
123
+ AddedDate * time.Time `json:"addedDate "`
124
124
Availability []int64 `json:"availability"` // RPC v17
125
125
BandwidthPriority * int64 `json:"bandwidthPriority"`
126
126
Comment * string `json:"comment"`
127
127
CorruptEver * int64 `json:"corruptEver"`
128
128
Creator * string `json:"creator"`
129
- DateCreated * time.Time `json:"- "`
129
+ DateCreated * time.Time `json:"dateCreated "`
130
130
DesiredAvailable * int64 `json:"desiredAvailable"`
131
- DoneDate * time.Time `json:"- "`
131
+ DoneDate * time.Time `json:"doneDate "`
132
132
DownloadDir * string `json:"downloadDir"`
133
133
DownloadedEver * int64 `json:"downloadedEver"`
134
134
DownloadLimit * int64 `json:"downloadLimit"`
135
135
DownloadLimited * bool `json:"downloadLimited"`
136
- EditDate * time.Time `json:"- "`
136
+ EditDate * time.Time `json:"editDate "`
137
137
Error * int64 `json:"error"`
138
138
ErrorString * string `json:"errorString"`
139
139
ETA * int64 `json:"eta"`
@@ -167,26 +167,26 @@ type Torrent struct {
167
167
PercentDone * float64 `json:"percentDone"`
168
168
Pieces * string `json:"pieces"`
169
169
PieceCount * int64 `json:"pieceCount"`
170
- PieceSize * cunits.Bits `json:"- "`
170
+ PieceSize * cunits.Bits `json:"PieceSize "`
171
171
Priorities []int64 `json:"priorities"`
172
172
PrimaryMimeType * string `json:"primary-mime-type"` // RPC v17
173
173
QueuePosition * int64 `json:"queuePosition"`
174
174
RateDownload * int64 `json:"rateDownload"` // B/s
175
175
RateUpload * int64 `json:"rateUpload"` // B/s
176
176
RecheckProgress * float64 `json:"recheckProgress"`
177
- TimeDownloading * time.Duration `json:"-"` // from secondsDownloading
178
- TimeSeeding * time.Duration `json:"-"` // from secondsSeeding
179
- SeedIdleLimit * time.Duration `json:"- "`
177
+ TimeDownloading * time.Duration `json:"secondsDownloading"`
178
+ TimeSeeding * time.Duration `json:"secondsSeeding"`
179
+ SeedIdleLimit * time.Duration `json:"seedIdleLimit "`
180
180
SeedIdleMode * int64 `json:"seedIdleMode"`
181
181
SeedRatioLimit * float64 `json:"seedRatioLimit"`
182
182
SeedRatioMode * SeedRatioMode `json:"seedRatioMode"`
183
- SizeWhenDone * cunits.Bits `json:"- "`
184
- StartDate * time.Time `json:"- "`
183
+ SizeWhenDone * cunits.Bits `json:"sizeWhenDone "`
184
+ StartDate * time.Time `json:"startDate "`
185
185
Status * TorrentStatus `json:"status"`
186
186
Trackers []Tracker `json:"trackers"`
187
187
TrackerList * string `json:"trackerList"`
188
188
TrackerStats []TrackerStats `json:"trackerStats"`
189
- TotalSize * cunits.Bits `json:"- "`
189
+ TotalSize * cunits.Bits `json:"totalSize "`
190
190
TorrentFile * string `json:"torrentFile"`
191
191
UploadedEver * int64 `json:"uploadedEver"`
192
192
UploadLimit * int64 `json:"uploadLimit"`
0 commit comments