From 28cb8ac14693a1741e3a4c30297c3c939839035e Mon Sep 17 00:00:00 2001 From: Marinho Date: Mon, 12 Feb 2024 17:04:12 +0000 Subject: [PATCH] chg: feat: update response format --- api/index.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/api/index.go b/api/index.go index d30702a..554d196 100644 --- a/api/index.go +++ b/api/index.go @@ -18,11 +18,17 @@ type IndexerMeta struct { SearchURL string } +type Response struct { + Results []IndexedTorrent `json:"results"` + Count int `json:"count"` +} + 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 []schema.Audio `json:"audio"` MagnetLink string `json:"magnet_link"` Date time.Time `json:"date"`