Add logs for serving error vids
This commit is contained in:
@@ -93,7 +93,7 @@ func (gf *GetFile) HandleGetRequest(w http.ResponseWriter, r *http.Request, t *i
|
||||
|
||||
resp := t.UnrestrictUntilOk(link)
|
||||
if resp == nil {
|
||||
log.Warnf("File %s is no longer available", file.Path)
|
||||
log.Warnf("File %s is no longer available", filepath.Base(file.Path))
|
||||
file.Link = "repair"
|
||||
t.SetChecksum("") // force a recheck
|
||||
gf.playErrorVideo("https://www.youtube.com/watch?v=gea_FJrtFVA", w, r, t, c, log)
|
||||
@@ -175,6 +175,7 @@ func (gf *GetFile) playErrorVideo(link string, w http.ResponseWriter, r *http.Re
|
||||
http.Error(w, "REAL-DEBRID IS DOWN", http.StatusInternalServerError)
|
||||
return
|
||||
}
|
||||
log.Debugf("Serving error video %s", link)
|
||||
if c.ShouldServeFromRclone() {
|
||||
redirect(w, r, resp.Download, c)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user