Initial commit 🌈

This commit is contained in:
Ben Sarmiento
2023-10-16 21:31:51 +02:00
commit da2c53bf86
15 changed files with 802 additions and 0 deletions

23
pkg/realdebrid/types.go Normal file
View File

@@ -0,0 +1,23 @@
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"`
Streamable int `json:"streamable,omitempty"`
}
type Torrent struct {
Filename string `json:"filename"`
Hash string `json:"hash"`
Progress int `json:"progress"`
Added string `json:"added"`
Links []string `json:"links"`
}