mirror of
https://github.com/simon-ding/polaris.git
synced 2026-06-26 02:34:58 +08:00
fix: nothing found
This commit is contained in:
@@ -123,6 +123,9 @@ func (s *Server) SearchTvAndDownload(c *gin.Context) (interface{}, error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, errors.Wrap(err, "download")
|
return nil, errors.Wrap(err, "download")
|
||||||
}
|
}
|
||||||
|
if len(name1) == 0 {
|
||||||
|
return nil, fmt.Errorf("no torrent found")
|
||||||
|
}
|
||||||
name = name1[0]
|
name = name1[0]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user