Skip to content

Commit

Permalink
minimum seeders (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
tsaridas authored Jan 27, 2024
1 parent 9af7d31 commit 4f861df
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,10 @@ function processTorrentList(torrentList) {
torrentList.forEach(torrent => {
const infoHash = torrent.infoHash;

if (torrent.seeders < config.minimumSeeds) {
return;
}

// Check if infoHash is already in the map
if (duplicatesMap.has(infoHash)) {
// If duplicate, update if the current torrent has higher seeders
Expand Down

0 comments on commit 4f861df

Please sign in to comment.