small fix on unrestrictable links
This commit is contained in:
@@ -557,7 +557,7 @@ func (t *TorrentManager) repair(torrentID string, selectedFiles []File, tryReins
|
|||||||
t.reinsertTorrent(torrent, missingFiles2, false)
|
t.reinsertTorrent(torrent, missingFiles2, false)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
log.Println("Cannot repair as the only 1 torrent is already broken in RD", torrent.ID, torrent.Name)
|
log.Println("Cannot repair as the single link cached in RD for this torrent is already broken", torrent.ID, torrent.Name)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
log.Println("Waiting for downloads to finish")
|
log.Println("Waiting for downloads to finish")
|
||||||
|
|||||||
@@ -78,6 +78,7 @@ func HandleGetRequest(w http.ResponseWriter, r *http.Request, t *torrent.Torrent
|
|||||||
t.HideTheFile(torrent, file)
|
t.HideTheFile(torrent, file)
|
||||||
}
|
}
|
||||||
http.Redirect(w, r, "https://send.nukes.wtf/tDeTd0", http.StatusFound)
|
http.Redirect(w, r, "https://send.nukes.wtf/tDeTd0", http.StatusFound)
|
||||||
|
return
|
||||||
} else if resp.Filename != filenameV2 {
|
} else if resp.Filename != filenameV2 {
|
||||||
actualExt := filepath.Ext(resp.Filename)
|
actualExt := filepath.Ext(resp.Filename)
|
||||||
expectedExt := filepath.Ext(filenameV2)
|
expectedExt := filepath.Ext(filenameV2)
|
||||||
|
|||||||
Reference in New Issue
Block a user