Don't return an error if no torrents are found for an episode
This commit is contained in:
parent
425bfdc8d3
commit
7fe76d6433
@ -10,6 +10,7 @@ import (
|
||||
"strconv"
|
||||
|
||||
"github.com/gorilla/mux"
|
||||
customError "github.com/odwrtw/errors"
|
||||
"github.com/odwrtw/papi"
|
||||
polochon "github.com/odwrtw/polochon/lib"
|
||||
"github.com/odwrtw/polochon/modules/pam"
|
||||
@ -311,7 +312,8 @@ func EpisodeDetailsHandler(env *web.Env, w http.ResponseWriter, r *http.Request,
|
||||
return env.RenderError(w, err)
|
||||
}
|
||||
|
||||
if err := e.GetTorrents(env, force); err != nil {
|
||||
err = e.GetTorrents(env, force)
|
||||
if err != nil && customError.IsFatal(err) {
|
||||
return env.RenderError(w, err)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user