* new: feat: add magnet-metadata-api post processor * chg: fix: lint issue * chg: chore: comment optional containers * chg: fix: remove redundant check
27 lines
784 B
Go
27 lines
784 B
Go
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"`
|
|
Files []File `json:"files,omitempty"`
|
|
LeechCount int `json:"leech_count"`
|
|
SeedCount int `json:"seed_count"`
|
|
Similarity float32 `json:"similarity"`
|
|
}
|
|
|
|
type File struct {
|
|
Path string `json:"path"`
|
|
Size string `json:"size"`
|
|
}
|