mirror of
https://github.com/simon-ding/polaris.git
synced 2026-05-26 20:47:57 +08:00
feat: add source field
This commit is contained in:
@@ -185,6 +185,7 @@ type TorznabSearchResult struct {
|
|||||||
Link string `json:"link"`
|
Link string `json:"link"`
|
||||||
Seeders int `json:"seeders"`
|
Seeders int `json:"seeders"`
|
||||||
Peers int `json:"peers"`
|
Peers int `json:"peers"`
|
||||||
|
Source string `json:"source"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *Server) SearchAvailableMovies(c *gin.Context) (interface{}, error) {
|
func (s *Server) SearchAvailableMovies(c *gin.Context) (interface{}, error) {
|
||||||
@@ -215,6 +216,7 @@ func (s *Server) SearchAvailableMovies(c *gin.Context) (interface{}, error) {
|
|||||||
Seeders: r.Seeders,
|
Seeders: r.Seeders,
|
||||||
Peers: r.Peers,
|
Peers: r.Peers,
|
||||||
Link: r.Link,
|
Link: r.Link,
|
||||||
|
Source: r.Source,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
if len(searchResults) == 0 {
|
if len(searchResults) == 0 {
|
||||||
@@ -277,4 +279,3 @@ func (s *Server) DownloadMovieTorrent(c *gin.Context) (interface{}, error) {
|
|||||||
return media.NameEn, nil
|
return media.NameEn, nil
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user