chg: feat: update response format
This commit is contained in:
@@ -18,11 +18,17 @@ type IndexerMeta struct {
|
|||||||
SearchURL string
|
SearchURL string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type Response struct {
|
||||||
|
Results []IndexedTorrent `json:"results"`
|
||||||
|
Count int `json:"count"`
|
||||||
|
}
|
||||||
|
|
||||||
type IndexedTorrent struct {
|
type IndexedTorrent struct {
|
||||||
Title string `json:"title"`
|
Title string `json:"title"`
|
||||||
OriginalTitle string `json:"original_title"`
|
OriginalTitle string `json:"original_title"`
|
||||||
Details string `json:"details"`
|
Details string `json:"details"`
|
||||||
Year string `json:"year"`
|
Year string `json:"year"`
|
||||||
|
IMDB string `json:"imdb"`
|
||||||
Audio []schema.Audio `json:"audio"`
|
Audio []schema.Audio `json:"audio"`
|
||||||
MagnetLink string `json:"magnet_link"`
|
MagnetLink string `json:"magnet_link"`
|
||||||
Date time.Time `json:"date"`
|
Date time.Time `json:"date"`
|
||||||
|
|||||||
Reference in New Issue
Block a user