mirror of
https://github.com/simon-ding/polaris.git
synced 2026-03-14 05:30:45 +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 {
|
||||
return nil, errors.Wrap(err, "download")
|
||||
}
|
||||
if len(name1) == 0 {
|
||||
return nil, fmt.Errorf("no torrent found")
|
||||
}
|
||||
name = name1[0]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user