feat: filter out dead torrents with 0 seeders

This commit is contained in:
2026-04-07 13:44:58 +02:00
parent 79a6dfd0ef
commit 81e5050732

View File

@@ -101,6 +101,11 @@ func (c *Client) SearchAnime(query string) ([]Torrent, error) {
seeders, _ := strconv.Atoi(item.Seeders)
leechers, _ := strconv.Atoi(item.Leechers)
// Skip dead torrents (0 seeders)
if seeders == 0 {
continue
}
// Extract torrent ID from download link
// Link format: https://nyaa.si/download/1234567.torrent
viewURL := extractViewURL(item.Link)