A lot of fixes: filenames, dupes in directories, dupes in torrents
This commit is contained in:
@@ -19,14 +19,15 @@ type UnrestrictResponse struct {
|
||||
}
|
||||
|
||||
type Torrent struct {
|
||||
ID string `json:"id"`
|
||||
Name string `json:"filename"`
|
||||
Hash string `json:"hash"`
|
||||
Progress int `json:"-"`
|
||||
Added string `json:"added"`
|
||||
Bytes int64 `json:"bytes"`
|
||||
Links []string `json:"links"`
|
||||
Files []File `json:"files,omitempty"`
|
||||
ID string `json:"id"`
|
||||
Name string `json:"filename"`
|
||||
OriginalName string `json:"original_filename"`
|
||||
Hash string `json:"hash"`
|
||||
Progress int `json:"-"`
|
||||
Added string `json:"added"`
|
||||
Bytes int64 `json:"bytes"`
|
||||
Links []string `json:"links"`
|
||||
Files []File `json:"files,omitempty"`
|
||||
}
|
||||
|
||||
func (t *Torrent) UnmarshalJSON(data []byte) error {
|
||||
|
||||
Reference in New Issue
Block a user