Fix unrestrict issue

This commit is contained in:
Ben Sarmiento
2023-11-28 00:41:15 +01:00
parent c8334ecb3b
commit 3d380e468f
9 changed files with 131 additions and 68 deletions

View File

@@ -11,12 +11,12 @@ type FileJSON struct {
Link string `json:"link"`
}
type UnrestrictResponse struct {
type Download struct {
Filename string `json:"filename"`
Filesize int64 `json:"filesize"`
Link string `json:"link"`
Host string `json:"host"`
Download string `json:"download,omitempty"`
Filesize int64 `json:"filesize"` // bytes, 0 if unknown
Link string `json:"link"` // Original link
Host string `json:"host"` // Host main domain
Download string `json:"download"` // Generated link
Streamable int `json:"streamable"`
}