Delete if everything is unselected
This commit is contained in:
@@ -82,7 +82,8 @@ func handleDeleteFile(w http.ResponseWriter, segments []string, t *torrent.Torre
|
||||
return fmt.Errorf("cannot find file %s", filepath)
|
||||
}
|
||||
|
||||
file.Link = "-"
|
||||
file.Link = "unselect"
|
||||
t.SetChecksum("")
|
||||
w.WriteHeader(http.StatusNoContent)
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user