Skip to content
This repository has been archived by the owner on Jan 21, 2022. It is now read-only.

CLI search tool #272

Open
rakoo opened this issue May 1, 2021 · 5 comments
Open

CLI search tool #272

rakoo opened this issue May 1, 2021 · 5 comments

Comments

@rakoo
Copy link

rakoo commented May 1, 2021

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:

  • it is a web version. I don't want to run a full webserver, configure its security etc when I already have a working ssh access. I could ssh into the VPS and access magneticow from localhost, but it's not usable in terminal browsers such as lynx
  • there is no information on swarm health and that is always my number one sorting criteria

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
Copy link

Glandos commented May 1, 2021

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

@rakoo
Copy link
Author

rakoo commented May 1, 2021

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
Copy link
Author

rakoo commented May 1, 2021

Updated 😃

@NHOrus
Copy link

NHOrus commented May 2, 2021

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

@rakoo
Copy link
Author

rakoo commented May 2, 2021

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants