33 lines
782 B
Go
33 lines
782 B
Go
package realdebrid
|
|
|
|
type FileJSON struct {
|
|
FileSize int `json:"filesize"`
|
|
Link string `json:"link"`
|
|
}
|
|
|
|
type UnrestrictResponse struct {
|
|
Filename string `json:"filename"`
|
|
Filesize int64 `json:"filesize"`
|
|
Link string `json:"link"`
|
|
Host string `json:"host"`
|
|
Download string `json:"download,omitempty"`
|
|
}
|
|
|
|
type Torrent struct {
|
|
ID string `json:"id"`
|
|
Name string `json:"filename"`
|
|
Hash string `json:"hash"`
|
|
Progress int `json:"progress"`
|
|
Added string `json:"added"`
|
|
Bytes int64 `json:"bytes"`
|
|
Links []string `json:"links"`
|
|
Files []File `json:"files,omitempty"`
|
|
}
|
|
|
|
type File struct {
|
|
ID int `json:"id"`
|
|
Path string `json:"path"`
|
|
Bytes int64 `json:"bytes"`
|
|
Selected int `json:"selected"`
|
|
}
|