Optimize torrent fetching

This commit is contained in:
Ben Adrian Sarmiento
2024-06-17 16:30:44 +02:00
parent b96f0d37c9
commit bf9adfb764
5 changed files with 342 additions and 213 deletions

View File

@@ -16,6 +16,7 @@ type FileJSON struct {
}
type Download struct {
ID string `json:"id"`
Filename string `json:"filename"`
Filesize int64 `json:"filesize"` // bytes, 0 if unknown
Link string `json:"link"` // Original link