boramalper / magnetico

Autonomous (self-hosted) BitTorrent DHT search engine suite.
http://labs.boramalper.org/magnetico/
GNU Affero General Public License v3.0
3.06k stars 343 forks source link

CLI search tool #272

Open rakoo opened 3 years ago

rakoo commented 3 years ago

Hey everyone! First of all thank you for this magnificent tool, I like not depending on third-party websites that come and go anymore and having more decentralization.

I'm running magnetico from a VPS, and my torrent client is on my personal computer. I want to use its database to find torrents but magneticow has 2 problems:

So I made a little tool to accomodate my needs: https://sr.ht/~rakoo/magneticos. It's a very simple cli tool that uses the sqlite db to find torrents, queries multiple trackers, and gives a list of torrents sorted by number of seeders. fzf helps the user refine their choice.

I'm not sure it's worth integrating inside magnetico, but if it is feel free to reuse and modify

Glandos commented 3 years ago

It seems really promising. Could you add the database path as a parameter? It is currently hardcoded to your home directory :smile:

rakoo commented 3 years ago

Oops! Indeed this is problematic. I'll probably default to the user path and make it configurable, just like https://github.com/boramalper/magnetico/blob/master/cmd/magneticod/main.go#L156

rakoo commented 3 years ago

Updated 😃

NHOrus commented 3 years ago

Updated badly, it adds "?mode=ro" to db path, then tries to find file with such suffix, always fails.

rakoo commented 3 years ago

Fixed in https://git.sr.ht/~rakoo/magneticos/commit/1c427b53e2c3186250034dea09e3b422a55f3379 😁