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)
|
resp := t.UnrestrictUntilOk(link)
|
||||||
if resp == nil {
|
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"
|
file.Link = "repair"
|
||||||
t.SetChecksum("") // force a recheck
|
t.SetChecksum("") // force a recheck
|
||||||
gf.playErrorVideo("https://www.youtube.com/watch?v=gea_FJrtFVA", w, r, t, c, log)
|
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)
|
http.Error(w, "REAL-DEBRID IS DOWN", http.StatusInternalServerError)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
log.Debugf("Serving error video %s", link)
|
||||||
if c.ShouldServeFromRclone() {
|
if c.ShouldServeFromRclone() {
|
||||||
redirect(w, r, resp.Download, c)
|
redirect(w, r, resp.Download, c)
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user