Add support for configs

This commit is contained in:
Ben Sarmiento
2023-10-18 21:09:25 +02:00
parent f9b5b1efac
commit 4650213218
19 changed files with 359 additions and 48 deletions

View File

@@ -21,7 +21,6 @@ func File(path string, fileSize int64, added string, link string) Response {
IsHidden: 0,
CreationDate: added,
LastModified: added,
Link: link,
},
Status: "HTTP/1.1 200 OK",
},

View File

@@ -24,8 +24,6 @@ type Prop struct {
CreationDate string `xml:"d:creationdate"`
LastModified string `xml:"d:getlastmodified"`
IsHidden int `xml:"d:ishidden"`
Filename string `xml:"-"`
Link string `xml:"-"`
}
type ResourceType struct {

View File

@@ -15,7 +15,7 @@ type UnrestrictResponse struct {
type Torrent struct {
ID string `json:"id"`
Filename string `json:"filename"`
Name string `json:"filename"`
Hash string `json:"hash"`
Progress int `json:"progress"`
Added string `json:"added"`