2024-12-13 11:54:55 -03:00
|
|
|
package schema
|
|
|
|
|
|
|
|
|
|
import "time"
|
|
|
|
|
|
|
|
|
|
type IndexedTorrent struct {
|
|
|
|
|
Title string `json:"title"`
|
|
|
|
|
OriginalTitle string `json:"original_title"`
|
|
|
|
|
Details string `json:"details"`
|
|
|
|
|
Year string `json:"year"`
|
|
|
|
|
IMDB string `json:"imdb"`
|
|
|
|
|
Audio []Audio `json:"audio"`
|
|
|
|
|
MagnetLink string `json:"magnet_link"`
|
|
|
|
|
Date time.Time `json:"date"`
|
|
|
|
|
InfoHash string `json:"info_hash"`
|
|
|
|
|
Trackers []string `json:"trackers"`
|
|
|
|
|
Size string `json:"size"`
|
2025-07-29 12:34:37 -03:00
|
|
|
Files []File `json:"files,omitempty"`
|
2024-12-13 11:54:55 -03:00
|
|
|
LeechCount int `json:"leech_count"`
|
|
|
|
|
SeedCount int `json:"seed_count"`
|
|
|
|
|
Similarity float32 `json:"similarity"`
|
|
|
|
|
}
|
2025-07-29 12:34:37 -03:00
|
|
|
|
|
|
|
|
type File struct {
|
|
|
|
|
Path string `json:"path"`
|
|
|
|
|
Size string `json:"size"`
|
|
|
|
|
}
|