Set time by ended or added correctly

This commit is contained in:
Ben Sarmiento
2023-11-22 16:18:46 +01:00
parent eee83dacf7
commit 215cdcc209
5 changed files with 19 additions and 4 deletions

View File

@@ -110,7 +110,7 @@ func handleListFiles(w http.ResponseWriter, requestPath string, t *torrent.Torre
if file == nil || !strings.HasPrefix(file.Link, "http") {
continue
}
fmt.Fprint(w, dav.File(filepath.Join(requestPath, filename), file.Bytes, tor.LatestAdded))
fmt.Fprint(w, dav.File(filepath.Join(requestPath, filename), file.Bytes, file.Ended))
}
fmt.Fprint(w, "</d:multistatus>")