feat: log to file

This commit is contained in:
Simon Ding
2024-07-25 20:28:13 +08:00
parent 04df9adfdf
commit 891be34504
6 changed files with 63 additions and 11 deletions

View File

@@ -195,11 +195,6 @@ func (s *Server) SearchAvailableMovies(c *gin.Context) (interface{}, error) {
return nil, errors.Wrap(err, "convert")
}
movieDetail := s.db.GetMediaDetails(id)
if movieDetail == nil {
return nil, errors.New("no media found of id " + ids)
}
res, err := core.SearchMovie(s.db, id, false)
if err != nil {
if err.Error() == "no resource found" {