bt2qbt/pkg/utorrentStructs/utorrent.go
rumanzo b66b5f8e75 Rewrite handle trackers function. Respect trackers tier
Expect for different types in resumeItem trackers.
New recursion function for dig interface for strings in helpers

https://github.com/rumanzo/bt2qbt/issues/36
2022-04-09 00:09:33 +03:00

22 lines
1.0 KiB
Go

package utorrentStructs
type ResumeItem struct {
AddedOn int64 `bencode:"added_on"`
Caption string `bencode:"caption,omitempty"`
CompletedOn int64 `bencode:"completed_on"`
Downloaded int64 `bencode:"downloaded"`
Info string `bencode:"info"`
Label string `bencode:"label,omitempty"`
Labels []string `bencode:"labels,omitempty"`
LastSeenComplete int64 `bencode:"last_seen_complete"`
Path string `bencode:"path"`
Prio []byte `bencode:"prio"`
Runtime int64 `bencode:"runtime"`
Started int64 `bencode:"started"`
Targets [][]interface{} `bencode:"targets,omitempty"`
Time int64 `bencode:"time"`
Trackers interface{} `bencode:"trackers,omitempty"`
UpSpeed int64 `bencode:"upspeed"`
Uploaded int64 `bencode:"uploaded"`
}