diff --git a/api/src/tracker/announce.js b/api/src/tracker/announce.js index a9da65a..f5befe5 100644 --- a/api/src/tracker/announce.js +++ b/api/src/tracker/announce.js @@ -122,16 +122,6 @@ const handleAnnounce = async (req, res) => { ); } - console.log({ - bytes, - uploaded, - alreadyUploadedSession, - uploadDeltaSession, - downloaded, - alreadyDownloadedSession, - downloadDeltaSession, - }); - await Progress.findOneAndUpdate( { userId: user._id, infoHash }, { diff --git a/client/components/TorrentList.js b/client/components/TorrentList.js index 0ff0ff7..dd649df 100644 --- a/client/components/TorrentList.js +++ b/client/components/TorrentList.js @@ -6,6 +6,7 @@ import slugify from "slugify"; import { ListUl } from "@styled-icons/boxicons-regular/ListUl"; import { Upload } from "@styled-icons/boxicons-regular/Upload"; import { Download } from "@styled-icons/boxicons-regular/Download"; +import { File } from "@styled-icons/boxicons-regular/File"; import { Chat } from "@styled-icons/boxicons-solid/Chat"; import { ChevronsLeft } from "@styled-icons/boxicons-solid/ChevronsLeft"; import { ChevronLeft } from "@styled-icons/boxicons-solid/ChevronLeft"; @@ -109,6 +110,20 @@ const TorrentList = ({ torrents = [], categories, total }) => { gridWidth: "100px", rightAlign: true, }, + { + header: "Downloads", + accessor: "downloads", + cell: ({ value }) => ( + + {value || 0} + + ), + gridWidth: "100px", + rightAlign: true, + }, { header: "Comments", accessor: "comments.count",