Re:Show HN: Torrentinim – low memory-footprint, API-only tor...
by reilly3000 on Monday August 09, 2021 @10:04PM
(#28124487)
This looks nice! Is there a way to configure it to exclude certain categories of content (such as nsfw)? Do you tend to run this behind a proxy?
[ Parent
| on HN ]
Re:Show HN: Torrentinim – low memory-footprint, API-only tor...
by squarefoot on Tuesday August 10, 2021 @01:14AM
(#28125356)
After a brief look at the code it doesn't seem so, however there's a procedure (insert_torrent() in src/torrents.nim) in which a retrieved torrent is added to the database, of which one column is the name of the torrent, so it would be possible to insert a filter based on a list of nsfw words that would discard the torrent if one or more are found.
Of course it wouldn't work on torrents that hide their nature, which hopefully happens very rarely.